安卓禁止ScrollView内的控件改变之后自动滚动
生活随笔
收集整理的這篇文章主要介紹了
安卓禁止ScrollView内的控件改变之后自动滚动
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在不希望控件改變時滾動條滾動。那么設置次控件或者布局的屬性
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"/>總結
以上是生活随笔為你收集整理的安卓禁止ScrollView内的控件改变之后自动滚动的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 为安卓应用添加手势密码功能,遇到的一些问
- 下一篇: couldn't find libgnu