From b39a8571999404c1a36d9f46b8e69783eb505ff2 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste <87148630+Jean-BaptisteC@users.noreply.github.com> Date: Wed, 17 Apr 2024 14:36:42 +0200 Subject: [PATCH] Fix buttons not appears (#45) --- app/src/main/res/layout/custom_barcode_scanner.xml | 9 +++------ app/src/main/res/layout/custom_scanner_activty.xml | 3 +-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/app/src/main/res/layout/custom_barcode_scanner.xml b/app/src/main/res/layout/custom_barcode_scanner.xml index f0d9cf2..bac7262 100644 --- a/app/src/main/res/layout/custom_barcode_scanner.xml +++ b/app/src/main/res/layout/custom_barcode_scanner.xml @@ -43,12 +43,10 @@ android:layout_margin="@dimen/fab_margin" android:accessibilityHeading="true" android:backgroundTint="@android:color/transparent" - android:clickable="false" android:contentDescription="@string/button_cancel" android:cropToPadding="false" - android:foregroundTint="@android:color/darker_gray" - android:onClick="onCancel" - app:srcCompat="@drawable/ic_cancel_black_24dp" /> + app:background="@android:color/darker_gray" + android:src="@drawable/ic_cancel_black_24dp" /> \ No newline at end of file diff --git a/app/src/main/res/layout/custom_scanner_activty.xml b/app/src/main/res/layout/custom_scanner_activty.xml index 305ff36..6843192 100644 --- a/app/src/main/res/layout/custom_scanner_activty.xml +++ b/app/src/main/res/layout/custom_scanner_activty.xml @@ -23,8 +23,7 @@ android:layout_marginBottom="@dimen/fab_margin" android:backgroundTint="@android:color/transparent" android:contentDescription="@string/flashlightButton" - android:onClick="switchFlashlight" - app:srcCompat="@drawable/ic_baseline_highlight_24" /> + android:src="@drawable/ic_baseline_highlight_24" /> \ No newline at end of file