I'm trying to apply android themes based upon sdk version. This should be a relatively easy task but I keep getting errors
So, I'm obviously doing something wrong, but cannot see where I'm wrong
What I have is:
Manifest
Then I created a 'read-only' file system
res/values/theme.xml
res/values-v11/theme.xml
Can anybody see where I have gone wrong, I've read it over and over again but cannot see it.
Thanks
B4X:
Generating R file. Error
AndroidManifest.xml:15: error: Error: No resource found that matches the given name (at 'theme' with value '@android:style/MyTheme').
AndroidManifest.xml:19: error: Error: No resource found that matches the given name (at 'theme' with value '@android:style/MyThemeNoTitle').
AndroidManifest.xml:32: error: Error: No resource found that matches the given name (at 'theme' with value '@android:style/MyThemeTransparent').
AndroidManifest.xml:40: error: Error: No resource found that matches the given name (at 'theme' with value '@android:style/MyThemeTransparent').
AndroidManifest.xml:55: error: Error: No resource found that matches the given name (at 'theme' with value '@android:style/MyThemeTransparent').
So, I'm obviously doing something wrong, but cannot see where I'm wrong
What I have is:
Manifest
B4X:
SetActivityAttribute(Person, android:theme, @android:style/MyThemeTransparent)
SetActivityAttribute(Present, android:theme, @android:style/MyThemeTransparent)
SetActivityAttribute(EventDetail, android:theme, @android:style/MyThemeTransparent)
SetActivityAttribute(Main, android:theme, @android:style/MyThemeNoTitle)
SetApplicationAttribute(android:theme, @android:style/MyTheme)
Then I created a 'read-only' file system
res/values/theme.xml
B4X:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style
name="MyTheme" parent="android:style/Theme.Light"> 'Also tried with @'s. i.e @android:style/Theme.Light
</style>
<style
name="MyThemeNoTitle" parent="android:style/Theme.Light.NoTitleBar">
</style>
<style
name="MyThemeTransparent" parent="android:style/Theme.Translucent.NoTitleBar">
</style>
</resources>
res/values-v11/theme.xml
B4X:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style
name="MyTheme" parent="@android:style/Theme.Holo.Light">
</style>
<style
name="MyThemeNoTitle" parent="@android:style/Theme.Holo.Light.NoActionBar">
</style>
<style
name="MyThemeTransparent" parent="@android:style/Theme.Holo.Light.Panel">
</style>
</resources>
Can anybody see where I have gone wrong, I've read it over and over again but cannot see it.
Thanks