Skip to content

Instantly share code, notes, and snippets.

@kozmi55
Created Aug 15, 2021
Embed
What would you like to do?
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