How to hide Android soft keyboard on EditText

前端 未结 16 1136
长发绾君心
长发绾君心 2020-11-27 14:38

I have an Activity with some EditText fields and some buttons as a convenience for what normally would be used to populate those fields. However when we the user touches on

16条回答
  •  星月不相逢
    2020-11-27 15:05

    Let's try to set the below properties in your xml for EditText

    android:focusableInTouchMode="true" android:cursorVisible="false".
    

    if you want to hide the softkeypad at launching activity please go through this link

提交回复
热议问题