Android Question can't set theme

gkc1956

Member
Licensed User
Longtime User
If I change the theme using the manifest editor :
SetApplicationAttribute(android:theme, "@android:style/Theme.Holo.Light")
I get :
AndroidManifest.xml:20: error: Error: No resource found that matches the given name (at 'theme' with value '@android:style/Theme.Holo.Light').

Same thing if I try and set Holo.Dark (which I believe is the default).

Thanks

Gordon
 

gkc1956

Member
Licensed User
Longtime User
I forgot to say that I use the compatibility library for API14... Does that make a difference ?

Thank
Gordon
 
Upvote 0

thedesolatesoul

Expert
Licensed User
Longtime User
the platform-sdk is backwards compatible, you can always use the latest and it will work all the way back (unless you use a feature from the latest android.jar that doesnt exist on older platforms).
for e.g. themes will just default to the device default theme on android 2.2
 
Upvote 0

Similar Threads

  • Locked
  • Article
Android Code Snippet [B4X] Light theme B4XDateTemplate
Replies
2
Views
8K
  • Article
Android Code Snippet Full Screen Theme
Replies
1
Views
10K
  • Article
Android Code Snippet Theme Colors
Replies
3
Views
29K
  • Article
Android Code Snippet Version safe themes
Replies
4
Views
12K
Top