ankidroid/Anki-Android

SOFT_INPUT_ADJUST_RESIZE deprecated in API30

Open

#7,110 创建于 2020年9月15日

在 GitHub 查看
 (4 评论) (0 反应) (0 负责人)Kotlin (2,789 fork)batch import
DeprecationHelp WantedKeep Open

仓库指标

Star
 (11,132 star)
PR 合并指标
 (平均合并 9天 12小时) (30 天内合并 93 个 PR)

描述

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

贡献者指南