How to change the theme for android at runtime in appcelerator

260 Views Asked by At

I have add 3 theme into my appcelerator project for android. Now i want to switch between the theme when user click on button. Please advice.

2

There are 2 best solutions below

1
On

Go through below link. It may help as your requirement:

runtime-theme-change

0
On

You cannot change the theme of an existing window, so you'd need to close the existing window and reopen it with the newly selected theme as the value for "theme" in the params for createWindow()