Browse Source

a11y message input

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 4 years ago
parent
commit
26574043bc

+ 6 - 3
app/src/main/res/layout/view_message_input.xml

@@ -46,7 +46,8 @@
             android:layout_width="36dp"
             android:layout_width="36dp"
             android:layout_height="36dp"
             android:layout_height="36dp"
             android:layout_below="@id/quotedChatMessageView"
             android:layout_below="@id/quotedChatMessageView"
-            android:scaleType="centerInside" />
+            android:scaleType="centerInside"
+            android:contentDescription="@string/nc_add_attachment" />
 
 
         <ImageButton
         <ImageButton
             android:id="@+id/smileyButton"
             android:id="@+id/smileyButton"
@@ -56,7 +57,8 @@
             android:layout_toStartOf="@id/messageSendButton"
             android:layout_toStartOf="@id/messageSendButton"
             android:background="@color/transparent"
             android:background="@color/transparent"
             android:src="@drawable/ic_insert_emoticon_black_24dp"
             android:src="@drawable/ic_insert_emoticon_black_24dp"
-            android:tint="@color/emoji_icons" />
+            android:tint="@color/emoji_icons"
+            android:contentDescription="@string/nc_add_emojis" />
 
 
         <ImageButton
         <ImageButton
             android:id="@id/messageSendButton"
             android:id="@id/messageSendButton"
@@ -66,7 +68,8 @@
             android:layout_below="@id/quotedChatMessageView"
             android:layout_below="@id/quotedChatMessageView"
             android:adjustViewBounds="true"
             android:adjustViewBounds="true"
             android:padding="4dp"
             android:padding="4dp"
-            android:scaleType="centerInside" />
+            android:scaleType="centerInside"
+            android:contentDescription="@string/nc_description_send_message_button" />
 
 
         <Space
         <Space
             android:id="@id/attachmentButtonSpace"
             android:id="@id/attachmentButtonSpace"

+ 1 - 0
app/src/main/res/values/strings.xml

@@ -283,6 +283,7 @@
     <string name="nc_message_sent">Message sent</string>
     <string name="nc_message_sent">Message sent</string>
     <string name="nc_remote_video_off">Remote video off</string>
     <string name="nc_remote_video_off">Remote video off</string>
     <string name="nc_remote_audio_off">Remote audio off</string>
     <string name="nc_remote_audio_off">Remote audio off</string>
+    <string name="nc_add_attachment">Add attachment</string>
 
 
     <!-- Contacts endless loading -->
     <!-- Contacts endless loading -->
     <string name="nc_no_more_load_retry">No more items to load. Refresh to retry.</string>
     <string name="nc_no_more_load_retry">No more items to load. Refresh to retry.</string>