How to stop the android soft keyboard from ever coming up in my entire application

前端 未结 5 688
广开言路
广开言路 2020-12-18 11:37

I\'m developing an application on a hardware device that has a built-in hardware keyboard that does not slide out so is always visible (like a blackberry). Therefore, I NEV

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-18 12:02

    I solved it by overriding onCheckIsTextEditor method in my a-bit-custom EditText.

    @Override
    public boolean onCheckIsTextEditor() {
        return false;
    }
    

提交回复
热议问题