原因,ScrollView中包含其餘控件,但控件顯示不全,此時會存在焦點問題,佈局顯示回到最後
解決方法:
<ScrollView android:layout_width="match_parent" android:layout_height="match_parent" > <LinearLayout android:focusable="true" android:focusableInTouchMode="true" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content">重點是:
android:focusable="true" android:focusableInTouchMode="true"這兩行加上就好了