How to hide softkeyboad when activity start in android?

前端 未结 2 1511
礼貌的吻别
礼貌的吻别 2021-01-31 03:03

I have android app in which one layout contains Linearlayout, ScrollView, TextView, EditView and Button. when I

2条回答
  •  醉酒成梦
    2021-01-31 03:52

    You can hide keyboard by add two lines to the parent view of editText.

    android:focusable="true"
    android:focusableInTouchMode="true"
    

提交回复
热议问题