3

I would like to implement a section header like on my listview. The one that can be found on android's settings menu. Is there a native way of implementing this without using 3rd party resources? Thanks!

Settings Menu on Android with Section Headers. Sample image.

enter image description here

Android Settings

4

1 に答える 1

5

これをタイトルとして使用し、リストビューの上に使用します

<TextView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="Hello, World"
    style="?android:attr/listSeparatorTextViewStyle"/>
于 2013-09-02T23:25:58.840 に答える