Monday, February 14, 2011

Remove Auto focus from Edit Text



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

8 comments:

  1. add android:focusableInTouchMode="true" in EditBox .

    ReplyDelete
  2. it is not working
    please do it this way

    In Activity Class
    editText.clearFocus();

    ReplyDelete
  3. please tell me how can i enter the value in focusableInTouchMode edittext

    ReplyDelete
  4. Excellent post.This is one of the good information.I am so happy by read about your about your blogs.
    Android app developers

    ReplyDelete
  5. Thanks, worked with dhraham suggestion!

    ReplyDelete
  6. This 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.

    Android developers

    ReplyDelete