SyntaxFix
Write A Post
Hire A Developer
Questions
If you want to change theme of an already existing activity, call recreate() after setTheme().
recreate()
setTheme()
Note: don't call recreate if you change theme in onCreate(), to avoid infinite loop.
onCreate()