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
ReplyDeleteThanks, worked with dhraham suggestion!
ReplyDeleteThanks, very useful.
ReplyDeleteHI this helped but i have hint in the text box when i click for the first time my onClick is not getting called so i have to click twice to remove my hint
ReplyDeleteworking well
ReplyDeletethanks a lot
Best and easiest answer is that.
ReplyDeleteadd android:windowSoftInputMode="stateHidden" in activity tag where in androidmanifest.xml
here details :
http://www.erhancetin.com.tr/2013/09/android-activity-ilk-acls-edittext.html
Excellent!!
ReplyDeleteThanks Its fine well
ReplyDeletethis.getWindow().setSoftInputMode(
WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
add this code to activity create event
add all well fine.
Thank you. It worked for me
ReplyDeleteNot working for me
ReplyDeleteworks for me. thanks
ReplyDelete