How to stop EditText from gaining focus at Activity startup in Android?

Posted by Rohit Kumar | Updated on

If you want to stop EditText from gaining focus at Activity startup in Android? Excellent answers from Luc and Mark however a good code sample is missing. Adding the tag android:focusableInTouchMode=”true” to like the following example will fix the problem.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers