style: allow adding newlines in the "Name" field

Since habit names are already shown with 2 lines in the main view,
it makes sense to allow an user to add newlines to the names.
This opens up the possibility for having better formatted text
for the habit name.
As suggested by another user, having markdown support would also
be a good addition at some point.
This commit is contained in:
powerjungle
2025-04-12 20:00:53 +02:00
parent 897a236501
commit c987144f4a

View File

@@ -94,8 +94,9 @@
<EditText <EditText
android:id="@+id/nameInput" android:id="@+id/nameInput"
style="@style/FormInput" style="@style/FormInput"
android:maxLines="1" android:maxLines="2"
android:inputType="textCapSentences" android:maxLength="50"
android:inputType="textCapSentences|textMultiLine"
android:hint="@string/yes_or_no_short_example" android:hint="@string/yes_or_no_short_example"
/> />
</LinearLayout> </LinearLayout>