2010-03-02

How to set a theme for android app using java code

Simply use the following piece of code where appropriate.

setTheme(android.R.style.Theme_Light);

You can use your desire theme rather than “Theme_Light”. Just replace that name by your desire theme name.

No comments: