As I know, the only way to achieve it is to recreate your activity like this: final Intent intent = getIntent(); overridePendingTransition(0, 0); intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION); finish(); overridePendingTransition(0, 0); startActivity(intent);
and set your theme every time during onCreate(). On Friday, December 4, 2009 4:24:24 PM UTC+4, kirti kaul wrote: > > Hi, > > My query is regarding on whether we can apply dynamically themes in > android,like what we do with our phones in which we can select a theme > and the same theme gets applied all across the phone.Is there a way to > do this in android ???? > > (I am able to change the default theme by hardcoding in the code > (styles.xml),but I need to know how we can we set themes dynamically. > I saw the Android phone,but there is no Setting where we can set the > Theme.) > > Any help will be appreciated!!! > > Thanks, > Kirti > -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en