<?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"
xmlns:tools="http://schemas.android.com/tools">
<data>
<variable
name="member"
type="com.example.sprout.refactor.vo.Member" />
</data>
<android.support.constraint.ConstraintLayout
android:layout_width="124dp"
android:layout_height="wrap_content"
android:layout_margin="@dimen/margin_tiny">
<TextView
android:id="@+id/room_main_user_name"
android:layout_width="wrap_content"
android:layout_height="32dp"
android:gravity="center"
android:text="@{member.userName}"
android:textSize="@dimen/text_medium"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:text="j4ckall" />
<ImageView
android:id="@+id/room_main_role_img"
android:layout_width="60dp"
android:layout_height="60dp"
android:src="@{member.role==0 ? @drawable/gunman:@drawable/witch}"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/room_main_user_name" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@{member.ready? @string/ready:@string/unReady}"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/room_main_role_img"
tools:text="準備完了" />
</android.support.constraint.ConstraintLayout>
</layout>