From 7224045560bdff5821988c480d92e6d76250e6e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20L=C3=A4nge?= Date: Mon, 9 Sep 2024 10:08:35 +0200 Subject: [PATCH 1/3] Fix `activity_result` layout in some edge cases Closes #231 --- .../qrscanner/ui/adapter/DeleteActionMode.kt | 1 - app/src/main/res/layout/activity_result.xml | 10 +++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/secuso/privacyfriendlycodescanner/qrscanner/ui/adapter/DeleteActionMode.kt b/app/src/main/java/com/secuso/privacyfriendlycodescanner/qrscanner/ui/adapter/DeleteActionMode.kt index 1e294204..a6b516c7 100644 --- a/app/src/main/java/com/secuso/privacyfriendlycodescanner/qrscanner/ui/adapter/DeleteActionMode.kt +++ b/app/src/main/java/com/secuso/privacyfriendlycodescanner/qrscanner/ui/adapter/DeleteActionMode.kt @@ -82,7 +82,6 @@ class DeleteActionMode(private val historyActivity: HistoryActivity) : ActionMod holder.binding.itemView.isChecked = false selectList.remove(s) } - Log.d("TAG", "Color" + holder.binding.itemView.cardForegroundColor + " " + holder.binding.itemView.cardBackgroundColor) ViewModelProvider(historyActivity)[HistoryViewModel::class.java].setSelectedItemCount(selectList.size) } } \ No newline at end of file diff --git a/app/src/main/res/layout/activity_result.xml b/app/src/main/res/layout/activity_result.xml index 207d52bf..2ae86980 100644 --- a/app/src/main/res/layout/activity_result.xml +++ b/app/src/main/res/layout/activity_result.xml @@ -100,7 +100,10 @@ android:text="TextView" android:textAlignment="textEnd" android:textSize="12sp" + app:layout_constrainedWidth="true" app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="1.0" + app:layout_constraintStart_toEndOf="@+id/textViewCodeType" app:layout_constraintTop_toTopOf="parent" />