mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-06-22 21:20:11 +03:00
Add some content descriptions
This commit is contained in:
parent
8f53e6f503
commit
c542f97df0
6 changed files with 37 additions and 3 deletions
|
@ -1697,9 +1697,11 @@ public class ComposeAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
|
||||||
if (holder.binding.contentSpoiler.getVisibility() == View.VISIBLE) {
|
if (holder.binding.contentSpoiler.getVisibility() == View.VISIBLE) {
|
||||||
statusDraft.spoilerChecked = false;
|
statusDraft.spoilerChecked = false;
|
||||||
holder.binding.contentSpoiler.setVisibility(View.GONE);
|
holder.binding.contentSpoiler.setVisibility(View.GONE);
|
||||||
|
holder.binding.buttonSensitive.setContentDescription(context.getString(R.string.add_content_warning));
|
||||||
} else {
|
} else {
|
||||||
holder.binding.contentSpoiler.setVisibility(View.VISIBLE);
|
holder.binding.contentSpoiler.setVisibility(View.VISIBLE);
|
||||||
statusDraft.spoilerChecked = true;
|
statusDraft.spoilerChecked = true;
|
||||||
|
holder.binding.buttonSensitive.setContentDescription(context.getString(R.string.remove_content_warning));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
//Last compose drawer
|
//Last compose drawer
|
||||||
|
|
|
@ -707,7 +707,7 @@
|
||||||
android:layout_height="48dp"
|
android:layout_height="48dp"
|
||||||
android:adjustViewBounds="true"
|
android:adjustViewBounds="true"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:contentDescription="@string/reblog_add"
|
android:contentDescription="@string/action_reblog"
|
||||||
app:activeImage="@drawable/ic_round_repeat_active_24"
|
app:activeImage="@drawable/ic_round_repeat_active_24"
|
||||||
app:iconSize="28dp"
|
app:iconSize="28dp"
|
||||||
app:inactiveImage="@drawable/ic_round_repeat_24"
|
app:inactiveImage="@drawable/ic_round_repeat_24"
|
||||||
|
@ -734,7 +734,7 @@
|
||||||
android:adjustViewBounds="true"
|
android:adjustViewBounds="true"
|
||||||
android:background="@color/transparent"
|
android:background="@color/transparent"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:contentDescription="@string/translate"
|
android:contentDescription="@string/action_quote"
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
android:src="@drawable/ic_baseline_format_quote_24"
|
android:src="@drawable/ic_baseline_format_quote_24"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
|
@ -760,7 +760,7 @@
|
||||||
android:layout_height="48dp"
|
android:layout_height="48dp"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:adjustViewBounds="true"
|
android:adjustViewBounds="true"
|
||||||
android:contentDescription="@string/favourite_add"
|
android:contentDescription="@string/action_favourite"
|
||||||
app:activeImage="@drawable/ic_round_star_24"
|
app:activeImage="@drawable/ic_round_star_24"
|
||||||
app:animationSpeed="1.5"
|
app:animationSpeed="1.5"
|
||||||
app:inactiveImage="@drawable/ic_round_star_border_24"
|
app:inactiveImage="@drawable/ic_round_star_border_24"
|
||||||
|
|
|
@ -179,6 +179,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginVertical="6dp"
|
android:layout_marginVertical="6dp"
|
||||||
android:layout_marginStart="6dp"
|
android:layout_marginStart="6dp"
|
||||||
|
android:contentDescription="@string/open_new_attachment_panel"
|
||||||
app:icon="@drawable/ic_compose_attach"
|
app:icon="@drawable/ic_compose_attach"
|
||||||
app:layout_constraintBottom_toBottomOf="@id/action_buttons_barrier"
|
app:layout_constraintBottom_toBottomOf="@id/action_buttons_barrier"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
@ -191,6 +192,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginVertical="6dp"
|
android:layout_marginVertical="6dp"
|
||||||
android:checkable="true"
|
android:checkable="true"
|
||||||
|
android:contentDescription="@string/add_content_warning"
|
||||||
app:icon="@drawable/ic_compose_sensitive"
|
app:icon="@drawable/ic_compose_sensitive"
|
||||||
app:layout_constraintBottom_toBottomOf="@id/action_buttons_barrier"
|
app:layout_constraintBottom_toBottomOf="@id/action_buttons_barrier"
|
||||||
app:layout_constraintStart_toEndOf="@id/button_attach"
|
app:layout_constraintStart_toEndOf="@id/button_attach"
|
||||||
|
@ -203,6 +205,7 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginVertical="6dp"
|
android:layout_marginVertical="6dp"
|
||||||
|
android:contentDescription="@string/change_visibility"
|
||||||
app:icon="@drawable/ic_compose_visibility_public"
|
app:icon="@drawable/ic_compose_visibility_public"
|
||||||
app:iconGravity="textStart"
|
app:iconGravity="textStart"
|
||||||
app:iconPadding="0dp"
|
app:iconPadding="0dp"
|
||||||
|
@ -216,6 +219,7 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginVertical="6dp"
|
android:layout_marginVertical="6dp"
|
||||||
|
android:contentDescription="@string/set_language"
|
||||||
android:fontFamily="monospace"
|
android:fontFamily="monospace"
|
||||||
android:minWidth="72dp"
|
android:minWidth="72dp"
|
||||||
app:layout_constraintBottom_toBottomOf="@id/action_buttons_barrier"
|
app:layout_constraintBottom_toBottomOf="@id/action_buttons_barrier"
|
||||||
|
@ -253,6 +257,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginVertical="6dp"
|
android:layout_marginVertical="6dp"
|
||||||
android:layout_marginEnd="6dp"
|
android:layout_marginEnd="6dp"
|
||||||
|
android:contentDescription="@string/action_publish"
|
||||||
app:icon="@drawable/ic_compose_post"
|
app:icon="@drawable/ic_compose_post"
|
||||||
app:layout_constraintBottom_toBottomOf="@id/action_buttons_barrier"
|
app:layout_constraintBottom_toBottomOf="@id/action_buttons_barrier"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
@ -276,6 +281,7 @@
|
||||||
style="@style/Widget.Material3.Button.IconButton"
|
style="@style/Widget.Material3.Button.IconButton"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:contentDescription="@string/attach_images"
|
||||||
app:icon="@drawable/ic_compose_attach_image" />
|
app:icon="@drawable/ic_compose_attach_image" />
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
|
@ -283,6 +289,7 @@
|
||||||
style="@style/Widget.Material3.Button.IconButton"
|
style="@style/Widget.Material3.Button.IconButton"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:contentDescription="@string/attach_audio"
|
||||||
app:icon="@drawable/ic_compose_attach_audio" />
|
app:icon="@drawable/ic_compose_attach_audio" />
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
|
@ -290,6 +297,7 @@
|
||||||
style="@style/Widget.Material3.Button.IconButton"
|
style="@style/Widget.Material3.Button.IconButton"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:contentDescription="@string/attach_videos"
|
||||||
app:icon="@drawable/ic_compose_attach_video" />
|
app:icon="@drawable/ic_compose_attach_video" />
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
|
@ -297,6 +305,7 @@
|
||||||
style="@style/Widget.Material3.Button.IconButton.Outlined"
|
style="@style/Widget.Material3.Button.IconButton.Outlined"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:contentDescription="@string/close_new_attachment_panel"
|
||||||
app:icon="@drawable/ic_baseline_close_24" />
|
app:icon="@drawable/ic_baseline_close_24" />
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
|
@ -304,6 +313,7 @@
|
||||||
style="@style/Widget.Material3.Button.IconButton"
|
style="@style/Widget.Material3.Button.IconButton"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:contentDescription="@string/add_poll"
|
||||||
app:icon="@drawable/ic_compose_poll" />
|
app:icon="@drawable/ic_compose_poll" />
|
||||||
|
|
||||||
<com.google.android.material.button.MaterialButton
|
<com.google.android.material.button.MaterialButton
|
||||||
|
@ -311,6 +321,7 @@
|
||||||
style="@style/Widget.Material3.Button.IconButton"
|
style="@style/Widget.Material3.Button.IconButton"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:contentDescription="@string/attach_files"
|
||||||
app:icon="@drawable/ic_compose_attach_more" />
|
app:icon="@drawable/ic_compose_attach_more" />
|
||||||
|
|
||||||
<androidx.appcompat.widget.LinearLayoutCompat
|
<androidx.appcompat.widget.LinearLayoutCompat
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:src="@drawable/ic_more"
|
android:src="@drawable/ic_more"
|
||||||
|
android:contentDescription="@string/more_options"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
android:layout_width="48dp"
|
android:layout_width="48dp"
|
||||||
android:layout_height="48dp"
|
android:layout_height="48dp"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
|
android:contentDescription="@string/more_options"
|
||||||
android:minWidth="48dp"
|
android:minWidth="48dp"
|
||||||
app:icon="@drawable/ic_more" />
|
app:icon="@drawable/ic_more" />
|
||||||
|
|
||||||
|
|
|
@ -57,6 +57,7 @@
|
||||||
<string name="show_privates">Show direct messages</string>
|
<string name="show_privates">Show direct messages</string>
|
||||||
<string name="action_open_in_web">Open in browser</string>
|
<string name="action_open_in_web">Open in browser</string>
|
||||||
<string name="translate">Translate</string>
|
<string name="translate">Translate</string>
|
||||||
|
<string name="more_options">More options</string>
|
||||||
<!--- Menu -->
|
<!--- Menu -->
|
||||||
<string name="home_menu">Home</string>
|
<string name="home_menu">Home</string>
|
||||||
<string name="local_menu">Local timeline</string>
|
<string name="local_menu">Local timeline</string>
|
||||||
|
@ -77,6 +78,9 @@
|
||||||
<string name="favourite_add">Add this message to your favourites?</string>
|
<string name="favourite_add">Add this message to your favourites?</string>
|
||||||
<string name="favourite_remove">Remove this message from your favourites?</string>
|
<string name="favourite_remove">Remove this message from your favourites?</string>
|
||||||
<string name="reblog_add">Boost this message?</string>
|
<string name="reblog_add">Boost this message?</string>
|
||||||
|
<string name="action_favourite">Favorite</string>
|
||||||
|
<string name="action_reblog">Boost</string>
|
||||||
|
<string name="action_quote">Quote</string>
|
||||||
<string name="warn_boost_no_media_description">Warn if message has no media description before boosting</string>
|
<string name="warn_boost_no_media_description">Warn if message has no media description before boosting</string>
|
||||||
<string name="reblog_missing_description">This message has missing media description. Are you sure to boost it?</string>
|
<string name="reblog_missing_description">This message has missing media description. Are you sure to boost it?</string>
|
||||||
<string name="reblog_remove">Unboost this message?</string>
|
<string name="reblog_remove">Unboost this message?</string>
|
||||||
|
@ -110,6 +114,21 @@
|
||||||
<string name="bookmark_remove">Remove bookmark</string>
|
<string name="bookmark_remove">Remove bookmark</string>
|
||||||
<string name="status_bookmarked">Status has been added to bookmarks!</string>
|
<string name="status_bookmarked">Status has been added to bookmarks!</string>
|
||||||
<string name="status_unbookmarked">Status was removed from bookmarks!</string>
|
<string name="status_unbookmarked">Status was removed from bookmarks!</string>
|
||||||
|
|
||||||
|
<!-- Compose -->
|
||||||
|
<string name="add_content_warning">Add content warning</string>
|
||||||
|
<string name="remove_content_warning">Remove content warning</string>
|
||||||
|
<string name="change_visibility">Change visibility</string>
|
||||||
|
<string name="set_language">Set language</string>
|
||||||
|
<string name="action_publish">Publish</string>
|
||||||
|
<string name="open_new_attachment_panel">Open new attachment panel</string>
|
||||||
|
<string name="close_new_attachment_panel">Close new attachment panel</string>
|
||||||
|
<string name="attach_images">Attach images</string>
|
||||||
|
<string name="attach_audio">Attach audio</string>
|
||||||
|
<string name="attach_videos">Attach videos</string>
|
||||||
|
<string name="attach_files">Attach files</string>
|
||||||
|
<string name="add_poll">Add a poll</string>
|
||||||
|
|
||||||
<!-- Date -->
|
<!-- Date -->
|
||||||
<string name="date_seconds">%d s</string>
|
<string name="date_seconds">%d s</string>
|
||||||
<string name="date_minutes">%d m</string>
|
<string name="date_minutes">%d m</string>
|
||||||
|
|
Loading…
Reference in a new issue