ソフト キーボードのトップスペース/マージンを削除する方法を知りたいです。
より鮮明な画像については、次のスクリーンショットをご覧ください。
スペースありとスペースなし:
ソフト キーボードのトップスペース/マージンを削除する方法を知りたいです。
より鮮明な画像については、次のスクリーンショットをご覧ください。
スペースありとスペースなし:
あなたが何であれ、最後にinputType
追加してください。|textNoSuggestions
表示されている「間隔」は、オートコンプリートの提案領域です。入力タイプを次のような単純なものに設定している場合text
、キーボードから候補が表示されます。フィールドに追加textNoSuggestions
するinputType
と、候補領域が削除されます。
たとえば、次のようになります。
<EditText android:id="@+id/username_field"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textNoSuggestions"
android:hint="@string/username" />
または、すでに次のようなものを使用しているtextCapWords
場合は、次のように組み合わせることができます。
<EditText android:id="@+id/username_field"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textCapWords|textNoSuggestions"
android:hint="@string/username" />
inputType="password"
また、それを使用しているかどうかはわかりませんが、パスワード フィールドに使用することをお勧めします。