Application type: Mobile Titanium
SDK: 3.3.0
Platform:Android 4.x
Device: Android GenyMotion Emulator & Sony Xperia E
OS: OSX 10.9
Titanium Studio: 3.3.0
After upgrading to 3.3.0 I was having problems hiding the action bar, to resolve this I used the below code in my styles.xml. This removed the action bar but made the background of the preference screen transparent.
<?xml version="1.0" encoding="utf-8"?> <resources> <style name="Theme.NoActionBar" parent="Theme.Titanium"/> <!--Depending on the parent theme, this may be called android:windowActionBar instead of windowActionBar--> <item type="bool" name="android:windowActionBar">false</item> <item type="bool" name="android:windowNoTitle">true</item> </style> </resources>When I switch the theme to 'Theme.Appcompat' the action bar returns and the background of the PreferenceScreen turns to the default dark colour seen in the dark theme.
I tried the below code to change the colour of background while using 'Theme.Titanium' but nothing seems to effect it.
<item type="string" name="android:background">#212121</item>and
<color name="background_colour">#212121</color> <style name="Theme.NoActionBar" parent="android:Theme.Titanium"> <item name="android:windowBackground">@color/background_colour</item> <item name="android:colorBackground">@color/background_colour</item> </style>I also tried solution on this page,
http://stackoverflow.com/questions/3551169/change-background-color-of-preference
I get the following errors,
Error: No resource found that matches the given name (at 'theme' with value '@style/PreferencesTheme').I've trying to figure it out for a while now and not sure what could be the problem, has anybody got any suggestions.