When start Android application, it always auto focus EditText box. Here we give explain how to remove auto focus from EditText.


Add your main.xml file to below additional code.

After add above code, you can remove auto focus from EditText.

Sameeraa4ever
Hi
ReplyDeleteIt is not worked
add android:focusableInTouchMode="true" in EditBox .
ReplyDeleteit is not working
ReplyDeleteplease do it this way
In Activity Class
editText.clearFocus();
please tell me how can i enter the value in focusableInTouchMode edittext
ReplyDeleteExcellent post.This is one of the good information.I am so happy by read about your about your blogs.
ReplyDeleteAndroid app developers
Thanks, worked with dhraham suggestion!
ReplyDeleteThis post has surprised me enough. So, I’m glad that such people can write such wonderful articles without being afraid of explaining their points of view.
ReplyDeleteAndroid developers
Thanks, very useful.
ReplyDelete