From 24cebc23634a9301cd9a24300c93e38aaa7c5d43 Mon Sep 17 00:00:00 2001 From: frankiehuangg <13521092@std.stei.itb.ac.id> Date: Fri, 5 Apr 2024 10:26:41 +0700 Subject: [PATCH] feat: add photo button --- app/src/main/res/layout/fragment_home.xml | 24 +++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/app/src/main/res/layout/fragment_home.xml b/app/src/main/res/layout/fragment_home.xml index e50be7f..784d023 100644 --- a/app/src/main/res/layout/fragment_home.xml +++ b/app/src/main/res/layout/fragment_home.xml @@ -18,14 +18,30 @@ app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" /> - <Button + <ImageButton android:id="@+id/image_capture_button" - android:layout_width="50dp" - android:layout_height="50dp" + android:src="@drawable/ic_baseline_photo_camera_48" android:text="@string/take_photo" + android:contentDescription="@string/take_photo" + android:layout_width="48dp" + android:layout_height="48dp" + app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" + app:layout_constraintTop_toBottomOf="@id/camera_view" + app:layout_constraintVertical_bias="0.454" /> + + <ImageButton + android:id="@+id/scan_image_picker_button" + android:src="@drawable/baseline_photo_48" + android:text="@string/scan_image_picker_button" + android:contentDescription="@string/scan_image_picker_button" + android:layout_width="48dp" + android:layout_height="48dp" + android:layout_marginBottom="28dp" app:layout_constraintBottom_toBottomOf="parent" - app:layout_constraintTop_toBottomOf="@id/camera_view" /> + app:layout_constraintEnd_toStartOf="@+id/image_capture_button" + app:layout_constraintHorizontal_bias="0.362" + app:layout_constraintStart_toStartOf="parent" /> </androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file -- GitLab