- <TextView
- android:layout_height="wrap_content"
- android:layout_width="match_parent"
- android:gravity="center_horizontal"
- android:text="@string/folder_names_must_be_unique" />
-</LinearLayout>
\ No newline at end of file
+ <!-- `android:imeOptions="actionGo"` sets the keyboard to have a "go" key instead of a "new line" key. `android:inputType="textUri"` disables spell check in the EditText. -->
+ <com.google.android.material.textfield.TextInputEditText
+ android:id="@+id/folder_name_edittext"
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:hint="@string/folder_name"
+ android:imeOptions="actionGo"
+ android:inputType="textUri" >
+ <requestFocus />
+ </com.google.android.material.textfield.TextInputEditText>
+ </com.google.android.material.textfield.TextInputLayout>
+
+ <TextView
+ android:layout_height="wrap_content"
+ android:layout_width="match_parent"
+ android:gravity="center_horizontal"
+ android:text="@string/folder_names_must_be_unique"
+ android:layout_marginStart="7dp"
+ android:layout_marginEnd="7dp" />
+ </LinearLayout>
+</ScrollView>
\ No newline at end of file