OSDN Git Service

Add the contentDescription on avatar icon
authorSunny Shao <sunnyshao@google.com>
Fri, 14 Dec 2018 03:17:07 +0000 (11:17 +0800)
committerSunny Shao <sunnyshao@google.com>
Mon, 17 Dec 2018 03:50:12 +0000 (11:50 +0800)
Add the talkback saying wordings on avatar icon of the search bar.

Change-Id: I7e41d8bf842c0efae5440520586e88dd746802e7
Fixes: 120097338
Test: manual

res/layout/search_bar.xml
res/values/strings.xml

index be8aa3b..fe2f270 100644 (file)
@@ -43,5 +43,6 @@
         android:layout_marginEnd="@dimen/search_bar_avatar_end_margin"
         android:layout_width="@dimen/search_bar_avatar_size"
         android:layout_height="@dimen/search_bar_avatar_size"
-        android:layout_gravity="end|center_vertical"/>
+        android:layout_gravity="end|center_vertical"
+        android:contentDescription="@string/search_bar_account_avatar_content_description"/>
 </com.google.android.material.card.MaterialCardView>
index 23adc76..d042ebc 100644 (file)
 
     <!-- Toast message for copy action of Copyable Slice [CHAR LIMIT=NONE] -->
     <string name="copyable_slice_toast"><xliff:g id="copy_content" example="Phone number">%1$s</xliff:g> copied to clipboard.</string>
+
+    <!-- String for talkback on the account avatar of the search bar.  [CHAR LIMIT=NONE] -->
+    <string name="search_bar_account_avatar_content_description"></string>
+
 </resources>