scrollview子根布局添加代码:
android:focusable=”true”
android:focusableInTouchMode=”true”
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="none">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:focusable="true"
android:focusableInTouchMode="true"
android:orientation="vertical">
</LinearLayout>
</ScrollView>