Add a description to the focus dialog (#2711)

* Show explanation atop focus set dialog

* Update app/src/main/res/layout/dialog_focus.xml

Per Connyduck suggestion

Co-authored-by: Konrad Pozniak <connyduck@users.noreply.github.com>

Co-authored-by: Konrad Pozniak <connyduck@users.noreply.github.com>
This commit is contained in:
mcclure 2022-10-15 13:04:27 -04:00 committed by GitHub
parent 9dd3a3d79b
commit 0e892be48e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 10 deletions

View file

@ -1,17 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:orientation="vertical">
<!-- todo add padding -->
<ImageView
android:id="@+id/imageView"
<TextView
android:id="@+id/focusExplanation"
android:layout_width="match_parent"
android:layout_height="match_parent" />
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:padding="24dp"
android:gravity="center"
android:textSize="18sp"
android:text="@string/set_focus_description" />
<com.keylesspalace.tusky.components.compose.view.FocusIndicatorView
android:id="@+id/focusIndicator"
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent" />
android:layout_height="wrap_content"
android:id="@+id/imageContainer">
</FrameLayout>
<!-- todo add padding -->
<ImageView
android:id="@+id/imageView"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<com.keylesspalace.tusky.components.compose.view.FocusIndicatorView
android:id="@+id/focusIndicator"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</FrameLayout>
</LinearLayout>

View file

@ -408,6 +408,7 @@
<plurals name="hint_describe_for_visually_impaired">
<item quantity="other">Describe for visually impaired\n(%d character limit)</item>
</plurals>
<string name="set_focus_description">Tap or drag the circle to choose the focal point which will always be visible in thumbnails.</string>
<string name="action_set_caption">Set caption</string>
<string name="action_set_focus">Set focus point</string>
<string name="action_edit_image">Edit image</string>