How To Stop EditText From Gaining Focus On Activity Start
Posted by blogmeister on
February 17, 2014
There are times when we do not want the EditText component to gain focus and have the input keyboard show up.
What I wanted was the input keyboard to only show up when I tap on the EditText component.
Well, there is a solution to this without using code. Just add the attribute android:focusableInTouchMode=”true” in your layout where the EditText is part of and it won’t show the keyboard whenever the Activity starts.
Share the post "How To Stop EditText From Gaining Focus On Activity Start"












