From 143c7c769055015268d32b6e1b22331f77eb7288 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 4 Aug 2018 09:32:28 +0000 Subject: [PATCH] Prevent entering newlines --- app/src/main/res/layout/fragment_compose.xml | 8 ++++---- app/src/main/res/layout/item_attachment.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/res/layout/fragment_compose.xml b/app/src/main/res/layout/fragment_compose.xml index 7dbab182..673879a6 100644 --- a/app/src/main/res/layout/fragment_compose.xml +++ b/app/src/main/res/layout/fragment_compose.xml @@ -31,7 +31,7 @@ android:layout_marginStart="6dp" android:hint="@string/title_to" android:inputType="textEmailAddress" - android:maxLines="1" + android:singeLine="true" android:textAppearance="@style/TextAppearance.AppCompat.Medium" app:layout_constraintEnd_toStartOf="@+id/ivToAdd" app:layout_constraintStart_toStartOf="parent" @@ -56,7 +56,7 @@ android:layout_marginStart="6dp" android:hint="@string/title_cc" android:inputType="textEmailAddress" - android:maxLines="1" + android:singeLine="true" android:textAppearance="@style/TextAppearance.AppCompat.Medium" app:layout_constraintEnd_toStartOf="@+id/ivCcAdd" app:layout_constraintStart_toStartOf="parent" @@ -81,7 +81,7 @@ android:layout_marginStart="6dp" android:hint="@string/title_bcc" android:inputType="textEmailAddress" - android:maxLines="1" + android:singeLine="true" android:textAppearance="@style/TextAppearance.AppCompat.Medium" app:layout_constraintEnd_toStartOf="@+id/ivBccAdd" app:layout_constraintStart_toStartOf="parent" @@ -107,7 +107,7 @@ android:layout_marginStart="6dp" android:hint="@string/title_subject" android:inputType="textEmailSubject" - android:maxLines="1" + android:singeLine="true" android:textAppearance="@style/TextAppearance.AppCompat.Medium" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" diff --git a/app/src/main/res/layout/item_attachment.xml b/app/src/main/res/layout/item_attachment.xml index 373c1b32..1b682e5d 100644 --- a/app/src/main/res/layout/item_attachment.xml +++ b/app/src/main/res/layout/item_attachment.xml @@ -20,7 +20,7 @@ android:layout_height="wrap_content" android:layout_marginStart="6dp" android:ellipsize="marquee" - android:singleLine="true" + android:maXlines="1" android:text="Name" android:textAppearance="@style/TextAppearance.AppCompat.Small" app:layout_constraintBottom_toBottomOf="@id/ivAttachments"