zoukankan      html  css  js  c++  java
  • hideSoftInputFromWindow

    有的时候会碰到软键盘不好关闭,然后就去调界面代码,发现不行,说到底还是对软键盘不熟悉的原因,软键盘windowSoftInputMode有很多种

    如果你默认的activity的模式为默认的,或者stateHidden|adjustPan等,那你在某些情况下是关不了( hideSoftInputFromWindow(IBinder windowToken, int flags))

    解决方法也很简单,就是把mode换掉,不要怀疑你隐藏的代码有问题,就算 getWindowToken是null,把model换成 stateAlwaysHidden 立马关闭

  • 相关阅读:
    @codeforces
    @codeforces
    @hdu
    @hdu
    @bzoj
    @bzoj
    @topcoder
    推荐系统主题相关资料
    Python统计百分比及排序
    如何发布及部署asp.net网站
  • 原文地址:https://www.cnblogs.com/LiuZhen/p/6148475.html
Copyright © 2011-2022 走看看