Dear All:

I'm trying to replace the theme dynamically.

My code like this:
----------------------------------------------------------------------------------------
if(theme_style==0)
{
        theme_style=1;
        setTheme(android.R.style.Theme_Light);
}
else if(theme_style==1)
{
        theme_style=0;
        setTheme(android.R.style.Theme_Dark);
}
----------------------------------------------------------------------------------------

But I find my layout is not replace theme.

How can I achieve to replace theme in run time?

THX,

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Android Challenge" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/android-challenge?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to