<?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="viewModel" type="jackall.moncalc.viewmodel.OverlayViewModel" /> <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="#b9000000" android:paddingTop="@dimen/statusbar_height"> <Button android:id="@+id/regist_btn" android:layout_width="@dimen/regist_button_width" android:layout_height="@dimen/regist_button_height" android:layout_marginEnd="8dp" android:layout_marginStart="8dp" android:layout_marginTop="8dp" android:onClick="@{registViewModel.onClickRegist}" android:text="@string/registration" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/grade_spinner" /> <Button android:id="@+id/min_btn" android:layout_width="@dimen/regist_button_width" android:layout_height="@dimen/regist_button_height" android:layout_marginEnd="8dp" android:layout_marginTop="8dp" android:onClick="@{viewModel.onClickMin}" android:text="@string/minimize" app:layout_constraintEnd_toStartOf="@+id/finish_btn" app:layout_constraintTop_toTopOf="parent" /> <Button android:id="@+id/finish_btn" android:layout_width="@dimen/regist_button_width" android:layout_height="@dimen/regist_button_height" android:layout_marginEnd="8dp" android:layout_marginTop="8dp" android:onClick="@{viewModel.onClickFinish}" android:text="@string/overlay_finish" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="parent" /> <Spinner android:id="@+id/temple_spinner" android:layout_width="match_parent" android:layout_height="40dp" android:layout_marginEnd="8dp" android:layout_marginStart="8dp" android:layout_marginTop="8dp" android:background="@drawable/custom_spinner_dropdown" android:clipChildren="false" 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/min_btn" /> <Spinner android:id="@+id/fruit_spinner" android:layout_width="match_parent" android:layout_height="40dp" android:layout_marginEnd="8dp" android:layout_marginStart="8dp" android:layout_marginTop="8dp" android:background="@drawable/custom_spinner_dropdown" 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="40dp" android:layout_marginEnd="8dp" android:layout_marginStart="8dp" android:layout_marginTop="8dp" android:background="@drawable/custom_spinner_dropdown" 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>