mirror of
https://github.com/Docile-Alligator/Infinity-For-Reddit.git
synced 2026-02-22 15:55:45 +00:00
Continue adding contentDescription for image views.
This commit is contained in:
@ -280,45 +280,58 @@ public class SearchResultActivity extends BaseActivity implements SortTypeSelect
|
||||
switch (fabOption) {
|
||||
case SharedPreferencesUtils.OTHER_ACTIVITIES_BOTTOM_APP_BAR_FAB_REFRESH:
|
||||
binding.fabSearchResultActivity.setImageResource(R.drawable.ic_refresh_24dp);
|
||||
binding.fabSearchResultActivity.setContentDescription(getString(R.string.content_description_refresh));
|
||||
break;
|
||||
case SharedPreferencesUtils.OTHER_ACTIVITIES_BOTTOM_APP_BAR_FAB_CHANGE_SORT_TYPE:
|
||||
binding.fabSearchResultActivity.setImageResource(R.drawable.ic_sort_toolbar_24dp);
|
||||
binding.fabSearchResultActivity.setContentDescription(getString(R.string.content_description_change_sort_type));
|
||||
break;
|
||||
case SharedPreferencesUtils.OTHER_ACTIVITIES_BOTTOM_APP_BAR_FAB_CHANGE_POST_LAYOUT:
|
||||
binding.fabSearchResultActivity.setImageResource(R.drawable.ic_post_layout_24dp);
|
||||
binding.fabSearchResultActivity.setContentDescription(getString(R.string.content_description_change_post_layout));
|
||||
break;
|
||||
case SharedPreferencesUtils.OTHER_ACTIVITIES_BOTTOM_APP_BAR_FAB_SEARCH:
|
||||
binding.fabSearchResultActivity.setImageResource(R.drawable.ic_search_24dp);
|
||||
binding.fabSearchResultActivity.setContentDescription(getString(R.string.content_description_search));
|
||||
break;
|
||||
case SharedPreferencesUtils.OTHER_ACTIVITIES_BOTTOM_APP_BAR_FAB_GO_TO_SUBREDDIT:
|
||||
binding.fabSearchResultActivity.setImageResource(R.drawable.ic_subreddit_24dp);
|
||||
binding.fabSearchResultActivity.setContentDescription(getString(R.string.content_description_go_to_subreddit));
|
||||
break;
|
||||
case SharedPreferencesUtils.OTHER_ACTIVITIES_BOTTOM_APP_BAR_FAB_GO_TO_USER:
|
||||
binding.fabSearchResultActivity.setImageResource(R.drawable.ic_user_24dp);
|
||||
binding.fabSearchResultActivity.setContentDescription(getString(R.string.content_description_go_to_user));
|
||||
break;
|
||||
case SharedPreferencesUtils.OTHER_ACTIVITIES_BOTTOM_APP_BAR_FAB_RANDOM:
|
||||
binding.fabSearchResultActivity.setImageResource(R.drawable.ic_random_24dp);
|
||||
binding.fabSearchResultActivity.setContentDescription(getString(R.string.content_description_random));
|
||||
break;
|
||||
case SharedPreferencesUtils.OTHER_ACTIVITIES_BOTTOM_APP_BAR_FAB_HIDE_READ_POSTS:
|
||||
if (accountName.equals(Account.ANONYMOUS_ACCOUNT)) {
|
||||
binding.fabSearchResultActivity.setImageResource(R.drawable.ic_filter_24dp);
|
||||
fabOption = SharedPreferencesUtils.OTHER_ACTIVITIES_BOTTOM_APP_BAR_FAB_FILTER_POSTS;
|
||||
binding.fabSearchResultActivity.setContentDescription(getString(R.string.content_description_filter_posts));
|
||||
} else {
|
||||
binding.fabSearchResultActivity.setImageResource(R.drawable.ic_hide_read_posts_24dp);
|
||||
binding.fabSearchResultActivity.setContentDescription(getString(R.string.content_description_hide_read_posts));
|
||||
}
|
||||
break;
|
||||
case SharedPreferencesUtils.OTHER_ACTIVITIES_BOTTOM_APP_BAR_FAB_FILTER_POSTS:
|
||||
binding.fabSearchResultActivity.setImageResource(R.drawable.ic_filter_24dp);
|
||||
binding.fabSearchResultActivity.setContentDescription(getString(R.string.content_description_filter_posts));
|
||||
break;
|
||||
case SharedPreferencesUtils.OTHER_ACTIVITIES_BOTTOM_APP_BAR_FAB_GO_TO_TOP:
|
||||
binding.fabSearchResultActivity.setImageResource(R.drawable.ic_keyboard_double_arrow_up_24);
|
||||
binding.fabSearchResultActivity.setContentDescription(getString(R.string.content_description_go_to_top));
|
||||
break;
|
||||
default:
|
||||
if (accountName.equals(Account.ANONYMOUS_ACCOUNT)) {
|
||||
binding.fabSearchResultActivity.setImageResource(R.drawable.ic_filter_24dp);
|
||||
fabOption = SharedPreferencesUtils.OTHER_ACTIVITIES_BOTTOM_APP_BAR_FAB_FILTER_POSTS;
|
||||
binding.fabSearchResultActivity.setContentDescription(getString(R.string.content_description_filter_posts));
|
||||
} else {
|
||||
binding.fabSearchResultActivity.setImageResource(R.drawable.ic_add_day_night_24dp);
|
||||
binding.fabSearchResultActivity.setContentDescription(getString(R.string.content_description_submit_post));
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@ -52,6 +52,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/fab_margin"
|
||||
android:layout_gravity="bottom|end" />
|
||||
android:layout_gravity="bottom|end"
|
||||
android:contentDescription="@null" />
|
||||
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
@ -44,6 +44,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/fab_margin"
|
||||
android:layout_gravity="bottom|end"
|
||||
android:src="@drawable/ic_add_24dp" />
|
||||
android:src="@drawable/ic_add_24dp"
|
||||
android:contentDescription="@string/content_description_add_subreddit_or_user" />
|
||||
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
@ -242,7 +242,8 @@
|
||||
android:layout_margin="16dp"
|
||||
android:layout_gravity="start"
|
||||
android:background="@drawable/play_button_round_background"
|
||||
android:visibility="gone" />
|
||||
android:visibility="gone"
|
||||
android:contentDescription="@string/content_description_video_indicator" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
@ -61,7 +61,8 @@
|
||||
<ImageView
|
||||
android:id="@+id/no_subscriptions_image_view_subscribed_subreddits_multiselection_activity"
|
||||
android:layout_width="150dp"
|
||||
android:layout_height="wrap_content" />
|
||||
android:layout_height="wrap_content"
|
||||
android:contentDescription="@string/content_description_no_subscriptions_indicator" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/error_text_view_subscribed_subreddits_multiselection_activity"
|
||||
|
||||
@ -73,6 +73,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/fab_margin"
|
||||
android:layout_gravity="bottom|end"
|
||||
android:contentDescription="@string/content_description_create_multireddit"
|
||||
app:srcCompat="@drawable/ic_add_day_night_24dp" />
|
||||
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
@ -157,7 +157,8 @@
|
||||
android:paddingTop="8dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:src="@drawable/ic_subscritptions_bottom_app_bar_24dp"
|
||||
android:background="?attr/selectableItemBackgroundBorderless" />
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:contentDescription="@string/content_description_bottom_navigation_bar_button" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/multi_reddit_bottom_app_bar_theme_preview_activity"
|
||||
@ -168,7 +169,8 @@
|
||||
android:paddingTop="8dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:src="@drawable/ic_multi_reddit_24dp"
|
||||
android:background="?attr/selectableItemBackgroundBorderless" />
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:contentDescription="@string/content_description_bottom_navigation_bar_button" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
@ -185,7 +187,8 @@
|
||||
android:paddingTop="8dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:src="@drawable/ic_inbox_24dp"
|
||||
android:background="?attr/selectableItemBackgroundBorderless" />
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:contentDescription="@string/content_description_bottom_navigation_bar_button" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/profile_bottom_app_bar_theme_preview_activity"
|
||||
@ -197,7 +200,8 @@
|
||||
android:paddingBottom="8dp"
|
||||
android:gravity="center"
|
||||
android:src="@drawable/ic_account_circle_24dp"
|
||||
android:background="?attr/selectableItemBackgroundBorderless" />
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:contentDescription="@string/content_description_bottom_navigation_bar_button" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@ -208,6 +212,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/fab_margin"
|
||||
android:contentDescription="@string/content_description_fab"
|
||||
app:srcCompat="@drawable/ic_add_day_night_24dp"
|
||||
app:tint="@android:color/white"
|
||||
app:layout_anchor="@id/bottom_navigation_theme_preview_activity" />
|
||||
|
||||
@ -73,7 +73,8 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="16dp"
|
||||
android:src="@drawable/ic_file_download_toolbar_white_24dp"
|
||||
android:background="?attr/selectableItemBackgroundBorderless" />
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:contentDescription="@string/content_description_download" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/share_image_view_view_image_or_gif_activity"
|
||||
@ -81,7 +82,8 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="16dp"
|
||||
android:src="@drawable/ic_share_toolbar_white_24dp"
|
||||
android:background="?attr/selectableItemBackgroundBorderless" />
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:contentDescription="@string/content_description_share" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/wallpaper_image_view_view_image_or_gif_activity"
|
||||
@ -90,7 +92,8 @@
|
||||
android:layout_marginEnd="16dp"
|
||||
android:padding="16dp"
|
||||
android:src="@drawable/ic_wallpaper_white_24dp"
|
||||
android:background="?attr/selectableItemBackgroundBorderless" />
|
||||
android:background="?attr/selectableItemBackgroundBorderless"
|
||||
android:contentDescription="@string/content_description_set_as_wallpaper" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
@ -1453,6 +1453,27 @@
|
||||
<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>
|
||||
<string name="content_description_submit_post">Submit post</string>
|
||||
<string name="content_description_refresh">Refresh</string>
|
||||
<string name="content_description_change_sort_type">Change sort type</string>
|
||||
<string name="content_description_change_post_layout">Change post layout</string>
|
||||
<string name="content_description_search">Search</string>
|
||||
<string name="content_description_go_to_subreddit">Go to subreddit</string>
|
||||
<string name="content_description_go_to_user">Go to user</string>
|
||||
<string name="content_description_random">Random</string>
|
||||
<string name="content_description_filter_posts">Filter posts</string>
|
||||
<string name="content_description_hide_read_posts">Hide read posts</string>
|
||||
<string name="content_description_go_to_top">Go to top</string>
|
||||
<string name="content_description_add_subreddit_or_user">Add subreddit or user</string>
|
||||
<string name="content_description_video_indicator">Video indicator</string>
|
||||
<string name="content_description_no_subscriptions_indicator">No subscriptions indicator</string>
|
||||
<string name="content_description_create_multireddit">Create multireddit</string>
|
||||
<string name="content_description_bottom_navigation_bar_button">Bottom navigation bar button</string>
|
||||
<string name="content_description_fab">Floating action button</string>
|
||||
<string name="content_description_download">Download</string>
|
||||
<string name="content_description_share">Share</string>
|
||||
<string name="content_description_set_as_wallpaper">Set as wallpaper</string>
|
||||
|
||||
|
||||
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user