Hiding the android keyboard for EditText

前端 未结 10 2080
慢半拍i
慢半拍i 2020-12-17 14:27

Whenever I click in the EditText the Android keyboard popup window appears, but I don\'t want the keyboard to pop up.

I want to permanently hide the and

10条回答
  •  心在旅途
    2020-12-17 15:16

    Try to add this in yout onCreate() method.

    getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
    

    Not tested but It Should work!!

提交回复
热议问题