Commit dbd31d48 authored by Aayush Gupta's avatar Aayush Gupta
Browse files

layout: Set missing content descrption on images



- Resolves multiple lint warnings
Signed-off-by: Aayush Gupta's avatarAayush Gupta <theimpulson@e.email>
parent e95ea7ed
......@@ -170,7 +170,8 @@
android:layout_marginEnd="@dimen/layout_margin_large"
android:layout_marginBottom="@dimen/layout_margin_large"
android:adjustViewBounds="true"
android:src="@drawable/package_name_help_image" />
android:src="@drawable/package_name_help_image"
android:contentDescription="@string/package_name_help_example" />
</LinearLayout>
......
......@@ -582,7 +582,8 @@
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:layout_marginStart="@dimen/layout_margin_medium"
android:src="@drawable/ic_app_description_expand" />
android:src="@drawable/ic_app_description_expand"
android:contentDescription="@string/permissions_expand" />
</RelativeLayout>
......@@ -621,7 +622,8 @@
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:layout_marginStart="@dimen/layout_margin_medium"
android:src="@drawable/ic_app_description_expand" />
android:src="@drawable/ic_app_description_expand"
android:contentDescription="@string/trackers_expand" />
</RelativeLayout>
......@@ -670,7 +672,8 @@
<ImageView
android:layout_width="16dp"
android:layout_height="16dp"
android:src="@drawable/ic_app_version" />
android:src="@drawable/ic_app_version"
android:contentDescription="@string/app_version" />
<TextView
android:layout_width="wrap_content"
......@@ -711,7 +714,8 @@
<ImageView
android:layout_width="16dp"
android:layout_height="16dp"
android:src="@drawable/ic_app_updated_on" />
android:src="@drawable/ic_app_updated_on"
android:contentDescription="@string/app_updated_on" />
<TextView
android:layout_width="wrap_content"
......@@ -752,7 +756,8 @@
<ImageView
android:layout_width="16dp"
android:layout_height="16dp"
android:src="@drawable/ic_app_min_android" />
android:src="@drawable/ic_app_min_android"
android:contentDescription="@string/app_min_android" />
<TextView
android:layout_width="wrap_content"
......@@ -793,7 +798,8 @@
<ImageView
android:layout_width="16dp"
android:layout_height="16dp"
android:src="@drawable/ic_app_licence" />
android:src="@drawable/ic_app_licence"
android:contentDescription="@string/app_licence" />
<TextView
android:layout_width="wrap_content"
......@@ -834,7 +840,8 @@
<ImageView
android:layout_width="16dp"
android:layout_height="16dp"
android:src="@drawable/ic_package_icon" />
android:src="@drawable/ic_package_icon"
android:contentDescription="@string/app_package_name" />
<TextView
android:layout_width="wrap_content"
......
......@@ -159,7 +159,8 @@
android:layout_width="16dp"
android:layout_height="16dp"
android:layout_marginStart="@dimen/layout_margin_medium"
android:src="@drawable/ic_app_privacy" />
android:src="@drawable/ic_app_privacy"
android:contentDescription="@string/app_privacy_description" />
<TextView
android:id="@+id/app_privacy_score"
......
......@@ -34,7 +34,8 @@
android:layout_centerVertical="true"
android:layout_marginStart="@dimen/layout_margin_medium"
android:src="@drawable/ic_cat_default"
android:tint="@color/color_category_icon" />
android:tint="@color/color_category_icon"
android:contentDescription="@string/menu_categories" />
<TextView
android:id="@+id/category_title"
......
......@@ -31,7 +31,8 @@
android:layout_width="@dimen/app_icon_size"
android:layout_height="@dimen/app_icon_size"
android:src="@drawable/ic_error"
android:tint="@android:color/darker_gray" />
android:tint="@android:color/darker_gray"
android:contentDescription="@string/error_incident" />
<TextView
android:id="@+id/error_description"
......
......@@ -26,6 +26,7 @@
android:id="@+id/image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?android:selectableItemBackground" />
android:background="?android:selectableItemBackground"
android:contentDescription="@string/image_carousel" />
</LinearLayout>
\ No newline at end of file
......@@ -29,4 +29,5 @@
android:layout_gravity="center"
android:paddingRight="5dp"
android:paddingBottom="2dp"
android:paddingTop="2dp" />
\ No newline at end of file
android:paddingTop="2dp"
android:contentDescription="@string/divider" />
\ No newline at end of file
......@@ -30,7 +30,8 @@
android:layout_width="64dp"
android:layout_height="64dp"
android:src="@lineageos.platform:drawable/ic_search"
android:tint="@android:color/darker_gray" />
android:tint="@android:color/darker_gray"
android:contentDescription="@string/menu_search" />
<TextView
android:layout_width="wrap_content"
......
......@@ -30,7 +30,8 @@
android:layout_width="64dp"
android:layout_height="64dp"
android:src="@drawable/ic_all_apps_updated"
android:tint="@android:color/darker_gray" />
android:tint="@android:color/darker_gray"
android:contentDescription="@string/menu_updates" />
<TextView
android:layout_width="wrap_content"
......
......@@ -186,7 +186,12 @@
<string name="Signature_verification_failed">Signature verification failed, aborting install</string>
<string name="permissions_expand">Show list of permissions</string>
<string name="trackers_expand">Show list of trackers</string>
<string name="package_name_help_example">Example scr showing a package and it\'s name</string>
<string name="error_incident">An error occured</string>
<string name="image_carousel">Image carousel</string>
<string name="divider">Divider</string>
</resources>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment