Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<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.test.sample.viewmodel.PlaceItemViewModel" />
</data>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/tv_title"
style="@style/TitleLeft"
android:text="@{viewModel.placeTitle}" />
<TextView
android:id="@+id/tv_votes_count"
style="@style/Subtitle"
android:text="@{viewModel.countVotes}" />
</LinearLayout>
</layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment