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

View file

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

View file

@ -6,7 +6,7 @@
android:orderInCategory="10"
android:title="@string/scan_qr_code"
android:visible="@bool/show_qr_code_scan"
app:showAsAction="always" />
app:showAsAction="always"/>
<item
android:icon="?attr/icon_search"
android:orderInCategory="11"