ListView标题与Android设置相同

Tsu*_*ara 3 layout android listview

我想在listview上实现一个节标题.可以在android的设置菜单上找到的那个.是否有本地方式在不使用第三方资源的情况下实现此目的?谢谢!

Android上带有章节标题的设置菜单.样本图片.

在此输入图像描述

Android设置

Aas*_*hir 5

使用此作为标题和上面的列表视图

<TextView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="Hello, World"
    style="?android:attr/listSeparatorTextViewStyle"/>
Run Code Online (Sandbox Code Playgroud)