I'm disappointed about Theme for Activities. I explain to you :
I have 2 activities :
1. MyTabActivity (TabActivity)
2. MyActivity (Activity)
MyActivity is include in a tab in MyTabActivity
I have 2 styles (one by activity that define drawable's background) :
Using xml Syntax Highlighting
- <style name="TabStyle" parent="@android:style/Theme.Black">
- <item name="android:background">@drawable/tab_bg</item>
- </style>
- <style name="DefaultStyle" parent="@android:style/Theme.Black">
- <item name="android:background">@drawable/default_bg</item>
- </style>
Parsed in 0.003 seconds, using GeSHi 1.0.8.4
My AndroidManifest.xml :
Using xml Syntax Highlighting
- <activity android:name=".tabs.MyTabActivity" android:label="@string/
- app_name" android:theme="@style/TabStyle">
- <intent-filter>
- <action android:name="android.intent.action.MAIN" />
- <category android:name="android.intent.category.LAUNCHER" />
- </intent-filter>
- </activity>
- <activity android:name=".MyActivity" android:theme="@style/
- DefaultStyle">
- </activity>
Parsed in 0.002 seconds, using GeSHi 1.0.8.4
Info : My layout doesn't contain any background definition, there are
pretty simple.
Problem : Theme for MyActivity is TabStyle instead of DefaultStyle.
In other words I see "@drawable/tab_bg" for background in MyActivity
instead of "@drawable/default_bg". I don't understand why the
background is not override. Am I going in the go way? or is it not logic ?
I would like to do that to do something like
http://devtcg.blogspot.com/2008/03/adva ... -demo.html
If you have an idea to do let me know.
Maxence
NB : Problem appear with other definition, like android:textColor ...

