解決策 1、Amazing List View Libraryを使用できます。これでうまくいきました。あまり長くないコードを参照できます。
解決策 2、次のように通常のリストビューにヘッダーを追加します。
itemheader.xml:
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/daily_title"
android:textColor="#545454"
android:text="04/16"
android:paddingLeft="10dp"
android:gravity="center_vertical"
android:textSize="10sp"
android:id="@+id/header"/>
item_rows.xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/ArticleList.item"
android:background="@drawable/list_item_bg"
android:orientation="vertical">
<include
android:layout_width="fill_parent"
android:layout_height="24dp"
layout="@layout/itemheader" />
次に、ヘッダーを表示する必要がある行に注意する必要があります。