Skip to content

Instantly share code, notes, and snippets.

@kozmi55
Created August 15, 2021 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kozmi55/233a7b6d17a2333a0f5049c1e47347f7 to your computer and use it in GitHub Desktop.
Save kozmi55/233a7b6d17a2333a0f5049c1e47347f7 to your computer and use it in GitHub Desktop.
Header Item
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<data>
<variable
name="itemViewModel"
type="com.tamaskozmer.flexiblerecyclerview.itemviewmodels.HeaderViewModel" />
</data>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="8dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="@android:color/black"
android:textSize="14sp"
android:layout_marginBottom="4dp"
android:text="@{itemViewModel.title}"
android:textStyle="bold"
tools:text="Toyota" />
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@android:color/darker_gray" />
</LinearLayout>
</layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment