安卓禁止ScrollView內的控制元件改變之後自動滾動
阿新 • • 發佈:2019-01-04
在不希望控制元件改變時滾動條滾動。那麼設定次控制元件或者佈局的屬性
android:focusable="true"
android:focusableInTouchMode="true"
如下
<FrameLayout
android:focusable="true"
android:focusableInTouchMode="true"
android:id="@+id/framlayout_loan_info"
android:layout_width ="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:background="@color/white"
/>