first use of a style, for section headings

This commit is contained in:
eehouse 2010-04-25 03:37:44 +00:00
parent 6e626b62cf
commit ac2b1728a9
2 changed files with 14 additions and 26 deletions

View file

@ -25,10 +25,7 @@
android:layout_height="fill_parent"
android:orientation="vertical">
<TextView android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_marginLeft="20dip"
android:layout_marginRight="20dip"
<TextView style="@style/config_separator"
android:text="@string/role_label"
/>
@ -38,15 +35,6 @@
android:drawSelectorOnTop="true"
/>
<TextView android:id="@+id/connect_via_label"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_marginLeft="20dip"
android:layout_marginRight="20dip"
android:visibility="gone"
android:text="@string/connect_via_label"
/>
<Spinner android:id="@+id/connect_spinner"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
@ -61,12 +49,8 @@
android:text="@string/configure_role"
/>
<TextView android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_marginLeft="20dip"
android:layout_marginRight="20dip"
<TextView style="@style/config_separator"
android:text="@string/players_label"
android:gravity="left"
/>
<!-- players -->
@ -93,10 +77,7 @@
/>
</LinearLayout>
<TextView android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_marginLeft="20dip"
android:layout_marginRight="20dip"
<TextView style="@style/config_separator"
android:text="@string/dict_label"
/>
@ -106,10 +87,7 @@
android:drawSelectorOnTop="true"
/>
<TextView android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_marginLeft="20dip"
android:layout_marginRight="20dip"
<TextView style="@style/config_separator"
android:text="@string/settings_label"
/>

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="config_separator">
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:gravity">left</item>
<item name="android:background">#FF7F7F7F</item>
<item name="android:textColor">#FFFFFFFF</item>
</style>
</resources>