Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ListView Headers same as Android settings

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

like image 812
Tsukihara Avatar asked Mar 24 '26 05:03

Tsukihara


1 Answers

Use this as the title and above listview

<TextView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="Hello, World"
    style="?android:attr/listSeparatorTextViewStyle"/>
like image 55
Aashir Avatar answered Mar 26 '26 23:03

Aashir



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!