How to remove focus from single editText

后端 未结 17 1430
南笙
南笙 2020-12-13 17:24

In my application I have a single EditText together with some TextViews, button and a spinner. My EditText receives focus since it is the only focu

17条回答
  •  时光说笑
    2020-12-13 17:50

    Just include this line

    android:selectAllOnFocus="false"
    

    in the XML segment corresponding to the EditText layout.

提交回复
热议问题