If I launch MyActivity separatly, It works fine.
On 12 déc, 11:15, Maxence Warzecha <[email protected]> wrote:
> Hi all,
>
> 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) :
> <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>
>
> My AndroidManifest.xml :
> <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>
>
> Info : My layout doesn't contain any background definition, there are
> pretty simple.
>
> Probleme : 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 doing something wrong ?
>
> Maxence
>
> NB : Problem appear with other definition, like android:textColor ...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---