Skip to content

Instantly share code, notes, and snippets.

@Frederikos
Created March 27, 2019 11:12
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 Frederikos/2a0d2882c95becb0016f1fcd6df8af14 to your computer and use it in GitHub Desktop.
Save Frederikos/2a0d2882c95becb0016f1fcd6df8af14 to your computer and use it in GitHub Desktop.
<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