<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout 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" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".DrawingActivity"> <org.ntlab.irisclient.DrawingCanvas android:id="@+id/drawingCanvas" android:layout_width="500dp" android:layout_height="310dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="1" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintVertical_bias="1" /> <Button android:id="@+id/clearButton" android:layout_width="90dp" android:layout_height="50dp" android:text="clear" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@+id/toggleButton" app:layout_constraintHorizontal_bias="0.512" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintVertical_bias="0.933" /> <TextView android:id="@+id/drawingNowText" android:layout_width="200dp" android:layout_height="51dp" android:gravity="center_horizontal" android:text="test" android:textSize="25sp" app:layout_constraintBottom_toTopOf="@+id/drawingCanvas" app:layout_constraintEnd_toStartOf="@+id/drawingCanvas" app:layout_constraintHorizontal_bias="0.558" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintVertical_bias="0.84" /> <TextView android:id="@+id/timerText" android:layout_width="95dp" android:layout_height="51dp" android:layout_marginEnd="16dp" android:gravity="center_horizontal" android:text="time" android:textSize="25sp" app:layout_constraintBottom_toTopOf="@+id/drawingCanvas" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintVertical_bias="0.86" /> <TextView android:id="@+id/keywordText" android:layout_width="375dp" android:layout_height="50dp" android:layout_marginStart="228dp" android:gravity="center_horizontal" android:text="keyword" android:textSize="25sp" app:layout_constraintBottom_toTopOf="@+id/drawingCanvas" app:layout_constraintEnd_toStartOf="@+id/timerText" app:layout_constraintHorizontal_bias="0.166" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintVertical_bias="0.843" /> <ToggleButton android:id="@+id/toggleButton" android:layout_width="90dp" android:layout_height="50dp" android:checked="true" android:text="ToggleButton" android:textOff="描き直す" android:textOn="完了" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@+id/drawingCanvas" app:layout_constraintHorizontal_bias="0.858" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintVertical_bias="0.933" /> <TextView android:id="@+id/textView4" android:layout_width="500dp" android:layout_height="310dp" android:background="@drawable/border" app:layout_constraintBottom_toBottomOf="@+id/drawingCanvas" app:layout_constraintEnd_toEndOf="@+id/drawingCanvas" app:layout_constraintHorizontal_bias="1.0" app:layout_constraintStart_toStartOf="@+id/drawingCanvas" app:layout_constraintTop_toTopOf="@+id/drawingCanvas" app:layout_constraintVertical_bias="1.0" /> <SeekBar android:id="@+id/seekBar" android:layout_width="170dp" android:layout_height="50dp" android:max="100" android:min="10" android:progress="10" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@+id/drawingCanvas" app:layout_constraintHorizontal_bias="1.0" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintVertical_bias="0.578" /> <ImageButton android:id="@+id/blackPenButton" android:layout_width="90dp" android:layout_height="90dp" android:scaleType="fitXY" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@+id/eraserButton" app:layout_constraintHorizontal_bias="0.516" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/drawingNowText" app:layout_constraintVertical_bias="0.035" app:srcCompat="@drawable/pen" /> <ImageButton android:id="@+id/eraserButton" android:layout_width="90dp" android:layout_height="90dp" android:layout_marginEnd="20dp" android:scaleType="fitXY" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@+id/drawingCanvas" app:layout_constraintTop_toBottomOf="@+id/drawingNowText" app:layout_constraintVertical_bias="0.035" app:srcCompat="@drawable/eraser" /> <SeekBar android:id="@+id/seekBar2" android:layout_width="170dp" android:layout_height="50dp" android:max="255" android:min="10" android:progress="255" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@+id/drawingCanvas" app:layout_constraintHorizontal_bias="1.0" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/seekBar" app:layout_constraintVertical_bias="0.156" /> <TextView android:id="@+id/penSizeText" android:layout_width="60dp" android:layout_height="50dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@+id/seekBar" app:layout_constraintHorizontal_bias="1.0" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintVertical_bias="0.578" /> <TextView android:id="@+id/alphaText" android:layout_width="60dp" android:layout_height="50dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@+id/seekBar2" app:layout_constraintHorizontal_bias="1.0" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintVertical_bias="0.761" /> </androidx.constraintlayout.widget.ConstraintLayout>