From d5a11a8004168652991ed1c974ebdd131420c1e9 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 24 Dec 2019 11:44:47 +0100 Subject: [PATCH] Added accessibility attributes --- app/src/main/res/layout/include_message_compact.xml | 7 ++++++- app/src/main/res/layout/include_message_normal.xml | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/app/src/main/res/layout/include_message_compact.xml b/app/src/main/res/layout/include_message_compact.xml index 9ffd3f85c3..7f829b0c4f 100644 --- a/app/src/main/res/layout/include_message_compact.xml +++ b/app/src/main/res/layout/include_message_compact.xml @@ -18,6 +18,7 @@ android:id="@+id/paddingTop" android:layout_width="match_parent" android:layout_height="12dp" + android:importantForAccessibility="no" android:visibility="gone" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" @@ -40,6 +41,7 @@ android:id="@+id/paddingStart" android:layout_width="6dp" android:layout_height="0dp" + android:importantForAccessibility="no" android:visibility="gone" app:layout_constraintStart_toEndOf="@+id/ibExpander" app:layout_constraintTop_toTopOf="parent" /> @@ -51,6 +53,7 @@ android:layout_marginStart="6dp" android:background="?android:attr/selectableItemBackgroundBorderless" android:contentDescription="@string/title_legend_avatar" + android:importantForAccessibility="no" android:scaleType="centerCrop" app:layout_constraintBottom_toBottomOf="@+id/tvFolder" app:layout_constraintDimensionRatio="1:1" @@ -63,7 +66,7 @@ android:layout_width="0dp" android:layout_height="0dp" app:layout_constraintStart_toEndOf="@+id/ibAvatar" - app:layout_constraintTop_toBottomOf="@id/paddingTop"/> + app:layout_constraintTop_toBottomOf="@id/paddingTop" /> @@ -38,6 +39,7 @@ android:id="@+id/paddingStart" android:layout_width="6dp" android:layout_height="0dp" + android:importantForAccessibility="no" app:layout_constraintBottom_toBottomOf="@+id/paddingBottom" app:layout_constraintStart_toEndOf="@+id/ibExpander" app:layout_constraintTop_toTopOf="parent" /> @@ -48,6 +50,7 @@ android:layout_height="0dp" android:background="?android:attr/selectableItemBackgroundBorderless" android:contentDescription="@string/title_legend_avatar" + android:importantForAccessibility="no" android:paddingStart="6dp" android:paddingEnd="6dp" android:scaleType="centerCrop" @@ -335,6 +338,7 @@ android:id="@+id/paddingEnd" android:layout_width="6dp" android:layout_height="0dp" + android:importantForAccessibility="no" app:layout_constraintBottom_toBottomOf="@+id/paddingBottom" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="parent" /> @@ -343,6 +347,7 @@ android:id="@+id/paddingBottom" android:layout_width="match_parent" android:layout_height="3dp" + android:importantForAccessibility="no" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/tvError" />