Skip to content

Instantly share code, notes, and snippets.

@kozmi55
Created Aug 16, 2021
Embed
What would you like to do?
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<data>
<variable
name="viewModel"
type="com.tamaskozmer.flexiblerecyclerview.CarListViewModel" />
</data>
<androidx.recyclerview.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingStart="16dp"
android:paddingEnd="16dp"
app:itemViewModels="@{viewModel.data}"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"/>
</layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment