浏览代码

add content description

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 7 年之前
父节点
当前提交
77e9e66a9c

+ 1 - 0
src/main/res/layout/drawer_header.xml

@@ -28,6 +28,7 @@
         android:id="@+id/drawer_header_background"
         android:layout_width="match_parent"
         android:layout_height="match_parent"
+        android:contentDescription="@string/drawer_header_background"
         android:src="@drawable/background"
         android:scaleType="centerCrop"/>
 

+ 1 - 0
src/main/res/layout/toolbar_user_information.xml

@@ -34,6 +34,7 @@
             android:id="@+id/drawer_header_background"
             android:layout_width="match_parent"
             android:layout_height="match_parent"
+            android:contentDescription="@string/drawer_header_background"
             android:scaleType="centerCrop"/>
 
         <android.support.v7.widget.Toolbar

+ 1 - 0
src/main/res/layout/user_info_details_table_item.xml

@@ -6,6 +6,7 @@
 
     <ImageView
         android:id="@+id/icon"
+        android:contentDescription="@string/account_icon"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:layout_marginBottom="@dimen/standard_margin"

+ 2 - 0
src/main/res/values/strings.xml

@@ -750,4 +750,6 @@
     
     <string name="userinfo_no_info_headline">No personal info set</string>
     <string name="userinfo_no_info_text">Add name, picture and contact details on your profile page.</string>
+    <string name="drawer_header_background">Background image of drawer header</string>
+    <string name="account_icon">Account icon</string>
 </resources>