app/src/main/res/layout-sw600dp/fragment_take_picture.xml
<?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"
android:layout_gravity="center_horizontal"
android:animateLayoutChanges="true"
tools:context=".view.dataset_editing.TakePictureFragment">
<androidx.camera.view.PreviewView
android:id="@+id/previewView_camera"
class="androidx.camera.view.PreviewView"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintBottom_toTopOf="@id/camera_guideline1"
android:clickable="false" />
<ImageView
android:id="@+id/imageView_camera"
android:layout_width="0dp"
android:layout_height="0dp"
android:scaleType="centerCrop"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintBottom_toTopOf="@id/camera_guideline1"
android:contentDescription="@string/AddPicture_camareImageViewDescription"
android:visibility="invisible" />
<Button
android:id="@+id/button_take_picture"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="28sp"
android:text="@string/AddPicture_takePictureButtonText"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/camera_guideline1"
app:layout_constraintBottom_toTopOf="@id/button_select_category_take_picture_fragment"
app:layout_constraintEnd_toEndOf="parent" />
<Button
android:id="@+id/button_select_category_take_picture_fragment"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="28sp"
android:text="@string/AddPicture_selectCategoryButtonText"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/button_take_picture"
app:layout_constraintBottom_toTopOf="@id/camera_guideline2"
tools:ignore="ButtonStyle" />
<Button
android:id="@+id/button_save_take_picture_fragment"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="30sp"
android:background="@color/purple_500"
app:layout_constraintTop_toBottomOf="@id/camera_guideline2"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
android:enabled="false"
android:text="@string/AddPicture_saveButtonText" />
<androidx.constraintlayout.widget.Guideline
android:id="@+id/camera_guideline1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintGuide_percent="0.75" />
<androidx.constraintlayout.widget.Guideline
android:id="@+id/camera_guideline2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintGuide_percent="0.92" />
</androidx.constraintlayout.widget.ConstraintLayout>