First thing i'd like to know is how i can use themes in Android? I tried to change this in the tiapp.xml:
I changed this:
<theme>default</theme>To:
<theme>Theme.Holo.Light</theme>But that doesn't seem to be doing anything. My Tabs still look the same (Green when selected).
So my first question is, how can i enable to Holo theme for my entire app?
And my second question is, is there an automatic fallback method when i run my app on an older device that don't support the Holo theme? Like ActionBarSherlock does for example.
1 Answer
Add this to your tiapp.xml:
<android xmlns:android="http://schemas.android.com/apk/res/android"> <tool-api-level>17</tool-api-level> <manifest> <application android:theme="@android:style/Theme.Holo.Light"> <activity android:name=".ThemetestActivity" android:theme="@android:style/Theme.Holo.Light"> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity> </application> </manifest> </android>This is working for me.
Your Answer
Think you can help? Login to answer this question!