Заголовок в адаптере listView - PullRequest
0 голосов
/ 28 марта 2019

Я создал несколько столбцов в списке с помощью специального адаптера. Я хочу добавить заголовки в мой список. Я создал list_adapter.xml ниже моего кода

<LinearLayout
android:id="@+id/relativeLayout1"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">

<TextView
    android:id="@+id/date"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:text="@string/date"
    android:layout_weight="1">
</TextView>
<TextView
    android:id="@+id/event"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:text="@string/event"
    android:layout_weight="1">
</TextView>
<TextView
    android:id="@+id/vanue"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:text="@string/vanue"
    android:layout_weight="1">
</TextView>

Есть фото чего я хочу:

The wanted result

...