0

Possible Duplicate:
How to change current Theme at runtime in Android

I want to set in the PreferenceScreen a theme for my whole app. Is there any way to do it global for all activities (not explicit in onCreate with setTheme)?

Update: I know the manifest entry theme, but how can I chance it dynamic at runtime?

Community
  • 1
  • 1
mars3142
  • 2,501
  • 4
  • 28
  • 58

3 Answers3

1
<application android:theme="@style/CustomTheme">
Manitoba
  • 8,522
  • 11
  • 60
  • 122
0

This issue is explained in another post here

Community
  • 1
  • 1
Ekrem KENTER
  • 316
  • 2
  • 11
0

I'm pretty sure you can set the app theme by setting it in the manifest file. You want to add the following to your application element.

android:theme="@android:style/Theme.Holo.Light"

Switch the mentioned theme for the one you want to use.

Here's a link to the Android docs for the application element: http://developer.android.com/guide/topics/manifest/application-element.html

CurtMorton
  • 56
  • 2