【问题标题】:WindowInsets vs InputMethodManager!! Right way to show and hide softkey in androidWindowInsets 与 InputMethodManager !在android中显示和隐藏软键的正确方法
【发布时间】:2021-10-30 14:09:34
【问题描述】:

我应该使用什么; WindowInsetsInputMethodManager 在 android 中显示和隐藏软键盘?在不影响应用性能的情况下,哪种方法是执行上述任务的正确方法?

我希望键盘显示和隐藏流畅。

【问题讨论】:

    标签: android android-softkeyboard ime windowinsets inputmethodmanager


    【解决方案1】:

    使用 InputMethodManager。我在生产中使用它。没有遇到任何性能问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多