If you have, for example, two FrameLayouts, and you want only 1 to have a cetrain style, you should add style = "@ style / application_list_entry" to the layout of the frame you want to change.
styles.xml
Make style:
<style name="container"> <item name="android:layout_width">fill_parent</item> <item name="android:layout_height">fill_parent</item> <item name="android:background">@drawable/bg_landscape</item> <item name="android:textColor">@color/white</item> // set color here <item name="android:orientation">vertical</item> </style>
my_layout.xml
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent> <FrameLayout style="@style/application_list_entry" > //this FrameLayout will be different from the one below </FrameLayout> <FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent" > </FrameLayout> </LinearLayout>
Hope this is what you were looking for.
Greetings
MSA
source share