ankidroid/Anki-Android

SOFT_INPUT_ADJUST_RESIZE deprecated in API30

Open

#7.110 geöffnet am 15. Sept. 2020

Auf GitHub ansehen
 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Kotlin (2.789 Forks)batch import
DeprecationHelp WantedKeep Open

Repository-Metriken

Stars
 (11.132 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 9T 12h) (93 gemergte PRs in 30 T)

Beschreibung

The counsel on this one is rather involved:

https://developer.android.com/reference/android/view/WindowManager.LayoutParams#SOFT_INPUT_ADJUST_RESIZE

Call Window#setDecorFitsSystemWindows(boolean) with false and install an OnApplyWindowInsetsListener on your root content view that fits insets of type Type#ime().

That's a medium sized restructuring, so just marking the deprecation for now

Contributor Guide