Start adding contentDescription for image views.

This commit is contained in:
Docile-Alligator
2024-09-04 23:47:04 -04:00
parent ca42beeb17
commit 2d0675202f
19 changed files with 60 additions and 12 deletions

View File

@ -286,7 +286,8 @@
android:padding="16dp"
android:background="?actionBarItemBackground"
android:clickable="true"
android:focusable="true" />
android:focusable="true"
android:contentDescription="@string/content_description_comment_filter_add_user" />
</LinearLayout>

View File

@ -661,7 +661,8 @@
android:padding="16dp"
android:background="?actionBarItemBackground"
android:clickable="true"
android:focusable="true" />
android:focusable="true"
android:contentDescription="@string/content_description_post_filter_add_subreddit" />
</LinearLayout>
@ -711,7 +712,8 @@
android:padding="16dp"
android:background="?actionBarItemBackground"
android:clickable="true"
android:focusable="true" />
android:focusable="true"
android:contentDescription="@string/content_description_post_filter_add_user" />
</LinearLayout>

View File

@ -286,7 +286,8 @@
android:padding="16dp"
android:background="?actionBarItemBackground"
android:clickable="true"
android:focusable="true" />
android:focusable="true"
android:contentDescription="@string/content_description_comment_filter_add_user" />
</LinearLayout>

View File

@ -661,7 +661,8 @@
android:padding="16dp"
android:background="?actionBarItemBackground"
android:clickable="true"
android:focusable="true" />
android:focusable="true"
android:contentDescription="@string/content_description_post_filter_add_subreddit" />
</LinearLayout>
@ -711,7 +712,8 @@
android:padding="16dp"
android:background="?actionBarItemBackground"
android:clickable="true"
android:focusable="true" />
android:focusable="true"
android:contentDescription="@string/content_description_post_filter_add_user" />
</LinearLayout>

View File

@ -45,6 +45,7 @@
android:layout_height="wrap_content"
android:layout_margin="@dimen/fab_margin"
android:layout_gravity="bottom|end"
android:contentDescription="@string/content_description_create_comment_filter"
app:backgroundTint="?attr/colorPrimaryLightTheme"
app:srcCompat="@drawable/ic_add_day_night_24dp"
app:tint="@android:color/white" />

View File

@ -45,6 +45,7 @@
android:layout_height="wrap_content"
android:layout_margin="@dimen/fab_margin"
android:layout_gravity="bottom|end"
android:contentDescription="@string/content_description_add_comment_filter_usage"
app:backgroundTint="?attr/colorPrimaryLightTheme"
app:srcCompat="@drawable/ic_add_day_night_24dp"
app:tint="@android:color/white" />

View File

@ -59,6 +59,7 @@
android:layout_height="wrap_content"
android:layout_margin="@dimen/fab_margin"
android:layout_gravity="bottom|end"
android:contentDescription="@string/content_description_create_custom_theme"
app:backgroundTint="?attr/colorPrimaryLightTheme"
app:srcCompat="@drawable/ic_add_day_night_24dp"
app:tint="@android:color/white" />

View File

@ -271,7 +271,8 @@
android:padding="16dp"
android:background="?actionBarItemBackground"
android:clickable="true"
android:focusable="true" />
android:focusable="true"
android:contentDescription="@string/content_description_comment_filter_add_user" />
</LinearLayout>

View File

@ -650,7 +650,8 @@
android:padding="16dp"
android:background="?actionBarItemBackground"
android:clickable="true"
android:focusable="true" />
android:focusable="true"
android:contentDescription="@string/content_description_post_filter_add_subreddit" />
</LinearLayout>
@ -700,7 +701,8 @@
android:padding="16dp"
android:background="?actionBarItemBackground"
android:clickable="true"
android:focusable="true" />
android:focusable="true"
android:contentDescription="@string/content_description_post_filter_add_user" />
</LinearLayout>

View File

@ -68,6 +68,7 @@
android:layout_margin="8dp"
android:padding="8dp"
android:background="@drawable/ic_dot_outline"
android:contentDescription="@string/content_description_change_banner"
app:srcCompat="@drawable/ic_outline_add_a_photo_day_night_24dp" />
</FrameLayout>
@ -93,6 +94,7 @@
android:layout_gravity="center"
android:padding="8dp"
android:background="@drawable/ic_dot_outline"
android:contentDescription="@string/content_description_change_avatar"
app:srcCompat="@drawable/ic_outline_add_a_photo_day_night_24dp" />
</FrameLayout>

View File

@ -45,6 +45,7 @@
android:layout_height="wrap_content"
android:layout_margin="@dimen/fab_margin"
android:layout_gravity="bottom|end"
android:contentDescription="@string/content_description_customize_post_filter"
android:src="@drawable/ic_filter_24dp" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>

View File

@ -58,6 +58,7 @@
android:layout_height="wrap_content"
android:layout_margin="@dimen/fab_margin"
android:layout_gravity="bottom|end"
android:contentDescription="@string/content_description_compose_message"
app:srcCompat="@drawable/ic_add_day_night_24dp" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>

View File

@ -51,6 +51,7 @@
android:layout_height="wrap_content"
android:layout_margin="@dimen/fab_margin"
android:layout_gravity="bottom|end"
android:contentDescription="@string/content_description_alternative_login_method"
android:src="@drawable/ic_login_24dp" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>

View File

@ -47,6 +47,7 @@
android:layout_gravity="bottom|end"
app:backgroundTint="?attr/colorPrimaryLightTheme"
app:srcCompat="@drawable/ic_add_day_night_24dp"
android:contentDescription="@string/content_description_add_post_filter_usage"
app:tint="@android:color/white" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>

View File

@ -47,6 +47,7 @@
android:layout_gravity="bottom|end"
app:backgroundTint="?attr/colorPrimaryLightTheme"
app:srcCompat="@drawable/ic_add_day_night_24dp"
android:contentDescription="@string/content_description_create_post_filter"
app:tint="@android:color/white" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>

View File

@ -233,6 +233,7 @@
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:src="@drawable/ic_outline_add_a_photo_24dp"
android:contentDescription="@string/content_description_capture_photo"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/select_from_library_fab_post_image_activity"
app:layout_constraintHorizontal_chainStyle="spread"
@ -246,6 +247,7 @@
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:src="@drawable/ic_outline_select_photo_24dp"
android:contentDescription="@string/content_description_select_image"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_chainStyle="spread"
@ -272,7 +274,8 @@
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:scaleType="fitStart"
android:visibility="gone" />
android:visibility="gone"
android:contentDescription="@string/content_description_selected_image" />
</LinearLayout>

View File

@ -233,6 +233,7 @@
android:layout_height="wrap_content"
android:padding="16dp"
android:src="@drawable/ic_outline_add_a_photo_24dp"
android:contentDescription="@string/content_description_record_video"
app:useCompatPadding="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/select_from_library_fab_post_video_activity"
@ -246,6 +247,7 @@
android:layout_height="wrap_content"
android:padding="16dp"
android:src="@drawable/ic_outline_select_photo_24dp"
android:contentDescription="@string/content_description_select_video"
app:useCompatPadding="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"

View File

@ -46,7 +46,8 @@
android:src="@drawable/ic_cancel_24dp"
android:clickable="true"
android:focusable="true"
android:background="?attr/actionBarItemBackground" />
android:background="?attr/actionBarItemBackground"
android:contentDescription="@string/content_description_delete_texts" />
<ImageView
android:id="@+id/link_handler_image_view_search_activity"
@ -56,7 +57,8 @@
android:src="@drawable/ic_open_link_24dp"
android:clickable="true"
android:focusable="true"
android:background="?attr/actionBarItemBackground" />
android:background="?attr/actionBarItemBackground"
android:contentDescription="@string/content_description_handle_link" />
</LinearLayout>

View File

@ -1433,4 +1433,26 @@
<string name="comment_filter_min_vote_explanation">Comments that have a score lower than the following value will be filtered out (-1 means no restriction).</string>
<string name="comment_filter_max_vote_explanation">Comments that have a score higher than the following value will be filtered out (-1 means no restriction).</string>
<string name="content_description_create_comment_filter">Create comment filter</string>
<string name="content_description_add_comment_filter_usage">Apply comment filter to somewhere</string>
<string name="content_description_comment_filter_add_user">Add a user to comment filter</string>
<string name="content_description_create_custom_theme">Create custom theme</string>
<string name="content_description_create_post_filter">Create post filter</string>
<string name="content_description_add_post_filter_usage">Apply post filter to somewhere</string>
<string name="content_description_post_filter_add_subreddit">Add a subreddit to post filter</string>
<string name="content_description_post_filter_add_user">Add a user to post filter</string>
<string name="content_description_change_banner">Change banner</string>
<string name="content_description_change_avatar">Change avatar</string>
<string name="content_description_customize_post_filter">Customize post filter</string>
<string name="content_description_compose_message">Compose message</string>
<string name="content_description_alternative_login_method">Alternative login method</string>
<string name="content_description_capture_photo">Capture photo</string>
<string name="content_description_select_image">Select image</string>
<string name="content_description_selected_image">Selected image</string>
<string name="content_description_record_video">Record video</string>
<string name="content_description_select_video">Select video</string>
<string name="content_description_delete_texts">Delete texts</string>
<string name="content_description_handle_link">Handle link</string>
</resources>