ScrollView控件会占据布局的焦点,如果不希望ScrollView控件占据布局的焦点,可以在布局文件的根目录下添加:
android:focusableInTouchMode="true"
例如:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white_background"
android:focusableInTouchMode="true"
tools:context="com.yuu.upost_b.activity.IdentityAuthenticationActivity" >
</RelativeLayout>