<?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="overlayViewModel" type="jackall.overlaymulticounter.viewmodel.OverlayViewModel" /> <variable name="counterViewModel" type="jackall.overlaymulticounter.viewmodel.OverlayCounterViewModel" /> </data> <android.support.constraint.ConstraintLayout android:layout_width="match_parent" android:layout_height="match_parent" android:paddingTop="@dimen/status_bar_height"> <Button android:id="@+id/overlay_finish_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginEnd="@dimen/overlay_layout_margin" android:layout_marginTop="@dimen/overlay_layout_margin" android:onClick="@{overlayViewModel.onClickFinish}" android:text="@string/overlay_finish" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="parent" /> <Button android:id="@+id/overlay_minimization_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginEnd="@dimen/overlay_layout_margin" android:onClick="@{overlayViewModel.onClickMin}" android:text="@string/overlay_minimization" app:layout_constraintEnd_toStartOf="@id/overlay_finish_button" app:layout_constraintTop_toTopOf="@id/overlay_finish_button" /> </android.support.constraint.ConstraintLayout> </layout>