Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@annchar
Created June 24, 2018 11:17
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 annchar/464274b479750727e0f54e3c8a8852da to your computer and use it in GitHub Desktop.
Save annchar/464274b479750727e0f54e3c8a8852da to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<layout
xmlns:android="http://schemas.android.com/apk/res/android" >
<data>
<variable
name="player"
type="com.azaless.cheerball.view.model.Player" />
</data>
<android.support.v7.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="@dimen/margin_medium">
<TextView
android:id="@+id/textViewName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@{player.name}" />
<TextView
android:id="@+id/textViewPosition"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@{player.position}" />
<TextView
android:id="@+id/textViewNumber"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@{player.jerseyNumber.toString()}" />
<TextView
android:id="@+id/textViewAge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Age" />
<TextView
android:id="@+id/textViewDateOfBirth"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@{player.dateOfBirth}" />
</LinearLayout>
</android.support.v7.widget.CardView>
</layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment