ankidroid/Anki-Android

SOFT_INPUT_ADJUST_RESIZE deprecated in API30

Open

#7.110 aberto em 15 de set. de 2020

Ver no GitHub
 (4 comments) (0 reactions) (0 assignees)Kotlin (2.789 forks)batch import
DeprecationHelp WantedKeep Open

Métricas do repositório

Stars
 (11.132 stars)
Métricas de merge de PR
 (Mesclagem média 9d 12h) (93 fundiu PRs em 30d)

Description

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

Guia do colaborador