我可以采用这种样式并在 Themes.XML 中使用它制作一个主题并将其应用于我的大部分活动吗
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="biglayout">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">match_parent</item>
<item name="android:orientation">vertical</item>
<item name="android:background">@drawable/pt5</item>
</style>
<style name="radiotiltebar">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">44dp</item>
<item name="android:background">@drawable/tilte2</item>
</style>
<style name="radiorelativelayout">
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">fill_parent</item>
</style>
<style name="btn1">
<item name="android:layout_width">106dp</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_alignParentRight">true</item>
<item name="android:layout_alignParentTop">true</item>
<item name="android:background">@null</item>
<item name="android:drawableBottom">@drawable/note</item>
</style>
<style name="btn2">
<item name="android:layout_width">108dp</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_alignParentBottom">true</item>
<item name="android:layout_alignParentTop">true</item>
<item name="android:background">@null</item>
<item name="android:drawableBottom">@drawable/key_icon</item>
</style>
<style name="btn3">
<item name="android:layout_width">106dp</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:layout_alignParentTop">true</item>
<item name="android:layout_toLeftOf">@+id/button1</item>
<item name="android:background">@null</item>
<item name="android:drawableBottom">@drawable/info</item>
</style>
XML
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/biglayout">
<RadioGroup
android:id="@+id/radioGroup1"
style="@style/radiotiltebar">
<RelativeLayout
android:id="@+id/relativeLayout1"
style="@style/radiorelativelayout" >
<Button
android:id="@+id/button1"
style="@style/btn1"
android:layout_alignParentBottom="true"/>
<Button
android:id="@+id/button2"
style="@style/btn2" />
<Button
android:id="@+id/button3"
style="@style/btn3"/>"
</RelativeLayout>
</RadioGroup>
<RelativeLayout
android:id="@+id/relativeLayout2"
style="@style/modelrelativelayout">
</RelativeLayout>
这种风格是我的自定义标题栏。看起来像这样 http://img845.imageshack.us/img845/3479/26906044.png