diff options
author | Sam Whited <sam@samwhited.com> | 2014-11-29 07:58:18 -0500 |
---|---|---|
committer | Sam Whited <sam@samwhited.com> | 2014-11-29 08:03:35 -0500 |
commit | e43ac27e8f3dfabb69bc5edcb3eb005598270e81 (patch) | |
tree | 41f95562be66cd4ed023c165e78c34056ce7ff1d /src/main/res | |
parent | afc673bb1506d2557201e856aabd12d4a78f193d (diff) |
Accessibility: Add missing image descriptions
Diffstat (limited to 'src/main/res')
-rw-r--r-- | src/main/res/layout/account_row.xml | 3 | ||||
-rw-r--r-- | src/main/res/layout/activity_edit_account.xml | 6 | ||||
-rw-r--r-- | src/main/res/values/strings.xml | 2 |
3 files changed, 8 insertions, 3 deletions
diff --git a/src/main/res/layout/account_row.xml b/src/main/res/layout/account_row.xml index 2d1190a3a..60b69090f 100644 --- a/src/main/res/layout/account_row.xml +++ b/src/main/res/layout/account_row.xml @@ -10,7 +10,8 @@ android:layout_width="48dp" android:layout_height="48dp" android:layout_alignParentLeft="true" - android:src="@drawable/ic_profile" > + android:src="@drawable/ic_profile" + android:contentDescription="@string/account_image_description"> </ImageView> <LinearLayout diff --git a/src/main/res/layout/activity_edit_account.xml b/src/main/res/layout/activity_edit_account.xml index fa39ed5ec..ed83cb9a2 100644 --- a/src/main/res/layout/activity_edit_account.xml +++ b/src/main/res/layout/activity_edit_account.xml @@ -27,7 +27,8 @@ android:layout_width="72dp" android:layout_height="72dp" android:layout_alignParentTop="true" - android:layout_marginRight="16dp"/> + android:layout_marginRight="16dp" + android:contentDescription="@string/account_image_description"/> <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" @@ -236,7 +237,8 @@ android:background="?android:selectableItemBackground" android:padding="8dp" android:src="@drawable/ic_action_copy" - android:visibility="visible" /> + android:visibility="visible" + android:contentDescription="@string/copy_otr_clipboard_description"/> </RelativeLayout> diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index 7e235f683..6b6394520 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -358,4 +358,6 @@ <string name="conference_created">Conference created!</string> <string name="secret_accepted">Secret accepted!</string> <string name="reset">Reset</string> + <string name="account_image_description">Account avatar</string> + <string name="copy_otr_clipboard_description">Copy OTR fingerprint to clipboard</string> </resources> |