From 7ab56e5cb1ccdb8bad3d8b3daf072bf16200ad54 Mon Sep 17 00:00:00 2001
From: Ghazi Akmal Fauzan <13521058@std.stei.itb.ac.id>
Date: Sat, 30 Mar 2024 15:12:04 +0700
Subject: [PATCH] style: updated scan style

---
 app/src/main/res/layout/fragment_scan.xml | 27 ++++++++++++++---------
 1 file changed, 17 insertions(+), 10 deletions(-)

diff --git a/app/src/main/res/layout/fragment_scan.xml b/app/src/main/res/layout/fragment_scan.xml
index d49b6bd..3d5bb31 100644
--- a/app/src/main/res/layout/fragment_scan.xml
+++ b/app/src/main/res/layout/fragment_scan.xml
@@ -10,11 +10,12 @@
         android:id="@+id/scanVerticalLayout"
         android:layout_width="match_parent"
         android:layout_height="match_parent"
-        android:orientation="vertical">
+        android:orientation="vertical"
+        tools:ignore="UselessParent">
 
         <Space
             android:layout_width="match_parent"
-            android:layout_height="75dp" />
+            android:layout_height="50dp" />
 
         <androidx.camera.view.PreviewView
             android:id="@+id/previewView"
@@ -25,17 +26,20 @@
         <LinearLayout
             android:id="@+id/scanHorizontalLayout"
             android:layout_width="300dp"
-            android:layout_height="180dp"
+            android:layout_height="160dp"
             android:layout_gravity="center"
             android:orientation="horizontal">
 
             <ImageButton
                 android:id="@+id/captureButton"
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
+                android:layout_width="75dp"
+                android:layout_height="75dp"
                 android:layout_gravity="center"
+                android:background="@drawable/round_corner_button_weak"
                 android:contentDescription="@string/capture_button"
-                android:src="@android:drawable/ic_menu_camera" />
+                android:scaleType="fitCenter"
+                android:src="@android:drawable/ic_menu_camera"
+                tools:ignore="RedundantDescriptionCheck" />
 
             <Space
                 android:layout_width="0dp"
@@ -44,17 +48,20 @@
 
             <ImageButton
                 android:id="@+id/galleryButton"
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
+                android:layout_width="75dp"
+                android:layout_height="75dp"
                 android:layout_gravity="center"
+                android:background="@drawable/round_corner_button_weak"
                 android:contentDescription="@string/gallery_button"
-                android:src="@android:drawable/ic_menu_gallery" />
+                android:scaleType="fitCenter"
+                android:src="@android:drawable/ic_menu_gallery"
+                tools:ignore="RedundantDescriptionCheck" />
 
         </LinearLayout>
 
         <Space
             android:layout_width="match_parent"
-            android:layout_height="75dp" />
+            android:layout_height="125dp" />
 
     </LinearLayout>
 
-- 
GitLab