Created
January 26, 2015 05:28
-
-
Save z0lope0z/0bfe1f49414bb11a9f93 to your computer and use it in GitHub Desktop.
Stop an EditText from getting focused on activity launch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from: http://stackoverflow.com/questions/1555109/stop-edittext-from-gaining-focus-at-activity-startup/1612017#1612017 | |
Add these properties to any ViewGroup in your layout | |
android:focusable="true" | |
android:focusableInTouchMode="true" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment