Android Softtastatur ausblenden
// Available on Android API 30+ / AndroidX Core 1.5+
public void hideKeyboard(View view) {
ViewCompat.getWindowInsetsController(this)
.hide(WindowInsetsCompat.Type.ime());
}
// @see https://youtu.be/acC7SR1EXsI
// @see https://developer.android.com/reference/androidx/core/view/ViewCompat#getWindowInsetsController(android.view.View)
// @see https://developer.android.com/reference/androidx/core/view/WindowInsetsControllerCompat#hide(int)
// @see https://developer.android.com/reference/androidx/core/view/WindowInsetsCompat.Type#ime()
Merlin4 (personal)