瀏覽代碼

ui: wizard: Restrict inputs to single lines

Peter Cai 1 年之前
父節點
當前提交
67c9612627
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      app-common/src/main/res/layout/fragment_download_details.xml

+ 5 - 0
app-common/src/main/res/layout/fragment_download_details.xml

@@ -32,6 +32,8 @@
             android:hint="@string/profile_download_server">
 
             <com.google.android.material.textfield.TextInputEditText
+                android:maxLines="1"
+                android:inputType="text"
                 android:layout_width="match_parent"
                 android:layout_height="match_parent" />
 
@@ -44,6 +46,7 @@
             android:hint="@string/profile_download_code">
 
             <com.google.android.material.textfield.TextInputEditText
+                android:maxLines="1"
                 android:layout_width="match_parent"
                 android:layout_height="match_parent"
                 android:inputType="textPassword" />
@@ -57,6 +60,7 @@
             android:hint="@string/profile_download_confirmation_code">
 
             <com.google.android.material.textfield.TextInputEditText
+                android:maxLines="1"
                 android:layout_width="match_parent"
                 android:layout_height="match_parent"
                 android:inputType="textPassword" />
@@ -73,6 +77,7 @@
             app:passwordToggleEnabled="true">
 
             <com.google.android.material.textfield.TextInputEditText
+                android:maxLines="1"
                 android:layout_width="match_parent"
                 android:layout_height="match_parent"
                 android:inputType="textPassword" />