How to change the theme for android at runtime in appcelerator

218 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 answers

1
0xAliHn On

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

runtime-theme-change

0
Fokke Zandbergen 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()