【问题标题】:What equivalent adjustNothing for the lower API 11?较低的 API 11 有什么等效的adjustNothing?
【发布时间】:2015-08-16 23:40:28
【问题描述】:

对于较低的 API 11,什么等效的 adjustNothing ?

清单中的这个命令:android:windowSoftInputMode="adjustNothing"

这个命令作为java代码: getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_NOTHING);

继续我之前的问题: How to prevent lifting listview when keyboard goes up

我解决了这个问题,使用 android:windowSoftInputMode="adjustNothing" ,但仅适用于 api 更高 10。 api lower 11 怎么解决?

【问题讨论】:

  • 尝试添加清单文件

标签: android android-softkeyboard


【解决方案1】:
getWindow().setSoftInputMode(48);

适用于 Android 2.3

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-04-24
    • 1970-01-01
    • 2016-02-02
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多