Skip to content

Commit 1e77b14

Browse files
Add multiline input for caption and description (#6173)
* allow multiple lines for description/caption * make caption multiline too --------- Co-authored-by: Nicolas Raoul <nicolas.raoul@gmail.com>
1 parent 43dca1d commit 1e77b14

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

app/src/main/res/layout/row_item_description.xml

+7-3
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,12 @@
5959
<fr.free.nrw.commons.ui.PasteSensitiveTextInputEditText
6060
android:id="@+id/caption_item_edit_text"
6161
android:layout_width="match_parent"
62-
android:layout_height="match_parent"
62+
android:layout_height="wrap_content"
63+
android:minLines="1"
64+
android:maxLines="10"
6365
android:hint="@string/share_caption_hint"
6466
android:imeOptions="actionNext|flagNoExtractUi"
65-
android:inputType="text"
67+
android:inputType="textMultiLine"
6668
app:allowFormatting="false" />
6769
</com.google.android.material.textfield.TextInputLayout>
6870

@@ -103,7 +105,9 @@
103105
<fr.free.nrw.commons.ui.PasteSensitiveTextInputEditText
104106
android:id="@+id/description_item_edit_text"
105107
android:layout_width="match_parent"
106-
android:layout_height="match_parent"
108+
android:layout_height="wrap_content"
109+
android:minLines="1"
110+
android:maxLines="10"
107111
android:hint="@string/share_description_hint"
108112
android:imeOptions="actionNext|flagNoExtractUi"
109113
android:inputType="textMultiLine"

0 commit comments

Comments
 (0)