'TextInputLayout TextInputEditText doesn't allows closing softkeyboard
I am using the material design implementation of a TextField.
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/container_poi_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:startIconDrawable="@drawable/baseline_place_black_24"
android:hint="@string/location_name">
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="text"
android:maxLines="1"
android:imeOptions="actionGo"
/>
</com.google.android.material.textfield.TextInputLayout>
On touch of the field - a soft keyboard opens and never closes. Even after leaving the NavGraph destination.
Also I miss the SoftKeyboard close button like on the picture. My triangle is showing to the left and doesnt close the keyboard.
Is there a possibility to configure the TextInputEditText to make the keyboard closeable?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

