<?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="registViewModel" type="jackall.moncalc.viewmodel.OverlayRegistViewModel" /> </data> <android.support.constraint.ConstraintLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="#ff0000"> <Button android:id="@+id/regist_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="8dp" android:layout_marginTop="8dp" android:onClick="@{registViewModel.onClickRegist}" android:text="regist" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> <Button android:id="@+id/min_btn" android:layout_width="wrap_content" android:layout_height="48dp" android:layout_marginStart="8dp" android:layout_marginTop="8dp" android:onClick="@{registViewModel.onClickMin}" android:text="min" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/regist_btn" /> <Button android:id="@+id/finish_btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="8dp" android:layout_marginTop="8dp" android:onClick="@{registViewModel.onClickFinish}" android:text="finish" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/min_btn" /> <Spinner android:id="@+id/temple_spinner" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginEnd="8dp" android:layout_marginStart="8dp" android:layout_marginTop="8dp" android:selectedItemPosition="@={registViewModel.templeRank}" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="1.0" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/finish_btn" /> <Spinner android:id="@+id/fruit_spinner" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginEnd="8dp" android:layout_marginStart="8dp" android:layout_marginTop="8dp" android:selectedItemPosition="@={registViewModel.fruitRank}" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/temple_spinner" /> <Spinner android:id="@+id/grade_spinner" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginEnd="8dp" android:layout_marginStart="8dp" android:layout_marginTop="8dp" android:selectedItemPosition="@={registViewModel.gradeRank}" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="0.0" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/fruit_spinner" /> </android.support.constraint.ConstraintLayout> </layout>