Created
June 11, 2013 08:48
-
-
Save billynyh/5755405 to your computer and use it in GitHub Desktop.
not auto focus edit text when launch view
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
add this in parent view xml | |
android:descendantFocusability="beforeDescendants" | |
android:focusableInTouchMode="true" | |
or in code | |
layout.setDescendantFocusability(ViewGroup.FOCUS_BEFORE_DESCENDANTS); | |
layout.setFocusableInTouchMode(true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment