Created
December 14, 2017 09:07
-
-
Save dyguests/681bd2621d7586e92b5e77934d39915c to your computer and use it in GitHub Desktop.
抢占焦点,防止页面初次进入时EditText唤起软键盘。
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
<?xml version="1.0" encoding="utf-8"?> | |
<android.support.constraint.ConstraintLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<!--防止页面刚加载出来时EditText获得焦点--> | |
<View | |
android:layout_width="0dp" | |
android:layout_height="0dp" | |
android:focusable="true" | |
android:focusableInTouchMode="true"/> | |
</android.support.constraint.ConstraintLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment