発生している問題
EditTextを使っていると、必要もないのにメールアドレスや名前などをサジェストしてきます。いろいろ試してみると、**hintの内容から自動的にサジェストする内容を決定している様子です。**例えば、
- hintに「ファイル名」と入れる → 名前がサジェストされる
- 「新しいメールアドレス」と入れる → メールアドレスがサジェストされる
- 「電話番号」と入れる → 電話番号がサジェストされる
と言った具合です。
それらのサジェストが邪魔なので、消す方法を教えてほしいです。
試したこと
inputTypeにいろいろ設定して試してみましたが、パスワード系以外全く変化はありませんでした。「textNoSuggestions」も同様です。
###該当のソースコード
XML
1<com.google.android.material.textfield.TextInputLayout 2 android:id="@+id/textInputLayout8" 3 style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense" 4 android:layout_width="0dp" 5 android:layout_height="wrap_content" 6 android:layout_marginStart="16dp" 7 android:layout_marginTop="16dp" 8 android:layout_marginEnd="16dp" 9 app:layout_constraintEnd_toEndOf="parent" 10 app:layout_constraintHorizontal_bias="0.0" 11 app:layout_constraintStart_toStartOf="parent" 12 app:layout_constraintTop_toBottomOf="@+id/textView14"> 13 14 <com.google.android.material.textfield.TextInputEditText 15 android:id="@+id/newFolderName" 16 android:layout_width="match_parent" 17 android:layout_height="wrap_content" 18 android:hint="フォルダー名" 19 android:inputType="textNoSuggestions|textFilter" 20 android:singleLine="true" /> 21 </com.google.android.material.textfield.TextInputLayout>

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/07/13 09:04