homogenize accessibility traversal in sent and received messages

This commit is contained in:
Daniel Gultsch 2020-08-31 13:20:17 +02:00
parent c48499253b
commit 6590dc922f
3 changed files with 11 additions and 3 deletions

View File

@ -37,7 +37,9 @@
android:orientation="vertical" android:orientation="vertical"
android:padding="2dp"> android:padding="2dp">
<include layout="@layout/message_content"/> <include
android:id="@+id/message_content"
layout="@layout/message_content"/>
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -82,6 +84,8 @@
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:gravity="center_vertical" android:gravity="center_vertical"
android:text="@string/sending" android:text="@string/sending"
android:accessibilityTraversalAfter="@id/message_photo"
android:accessibilityTraversalBefore="@id/message_content"
android:textAppearance="@style/TextAppearance.Conversations.Caption"/> android:textAppearance="@style/TextAppearance.Conversations.Caption"/>
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>

View File

@ -51,7 +51,9 @@
android:orientation="vertical" android:orientation="vertical"
android:padding="2dp"> android:padding="2dp">
<include layout="@layout/message_content" /> <include
android:id="@+id/message_content"
layout="@layout/message_content" />
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -67,6 +69,8 @@
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:layout_marginEnd="4sp" android:layout_marginEnd="4sp"
android:layout_marginRight="4sp" android:layout_marginRight="4sp"
android:accessibilityTraversalAfter="@id/message_photo"
android:accessibilityTraversalBefore="@id/message_content"
android:gravity="center_vertical" android:gravity="center_vertical"
android:text="@string/sending" android:text="@string/sending"
android:textAppearance="@style/TextAppearance.Conversations.Caption" /> android:textAppearance="@style/TextAppearance.Conversations.Caption" />