scroll image in alt text editor

closes sk22#315
This commit is contained in:
sk
2023-01-21 22:48:00 +01:00
parent 900e8fb2e9
commit 92f37fdf16

View File

@@ -1,18 +1,19 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout <ScrollView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:orientation="vertical"> android:layout_marginBottom="250dp"
android:layout_gravity="top">
<org.joinmastodon.android.ui.views.MaxWidthFrameLayout <org.joinmastodon.android.ui.views.MaxWidthFrameLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center"
android:maxWidth="400dp"> android:maxWidth="400dp">
<ImageView <ImageView
@@ -25,39 +26,40 @@
</org.joinmastodon.android.ui.views.MaxWidthFrameLayout> </org.joinmastodon.android.ui.views.MaxWidthFrameLayout>
<TextView </ScrollView>
android:id="@+id/title"
<LinearLayout
android:orientation="vertical"
android:layout_gravity="bottom"
android:layout_width="match_parent"
android:layout_height="250dp">
<View
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="0.5dp"
android:layout_marginBottom="8dp" android:background="?attr/colorPollVoted"/>
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="16dp"
android:textAppearance="@style/m3_headline_medium"
android:minHeight="36dp"
android:gravity="center_vertical"
android:text="@string/add_alt_text"/>
<TextView <TextView
android:id="@+id/subtitle" android:id="@+id/subtitle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:layout_marginLeft="16dp" android:layout_marginLeft="16dp"
android:layout_marginRight="16dp" android:layout_marginRight="16dp"
android:textAppearance="@style/m3_title_medium" android:textAppearance="@style/m3_title_small"
android:textColor="?android:textColorSecondary" android:textColor="?android:textColorSecondary"
android:text="@string/alt_text_subtitle"/> android:text="@string/alt_text_subtitle"/>
<EditText <EditText
android:id="@+id/edit" android:id="@+id/edit"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="0dp"
android:layout_weight="1"
android:layout_margin="16dp" android:layout_margin="16dp"
android:minHeight="212dp"
android:gravity="top" android:gravity="top"
android:inputType="textCapSentences|textMultiLine" android:inputType="textCapSentences|textMultiLine"
android:hint="@string/alt_text_hint"/> android:hint="@string/alt_text_hint" />
</LinearLayout> </LinearLayout>
</ScrollView> </FrameLayout>