以下のようなScrollViewとLinearLayoutの組み合わせで、
<ScrollView android:id="@+id/log_scroll_view" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/scroll_view_border"> <LinearLayout android:id="@+id/log_view" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="5dp" android:layout_marginRight="5dp" android:orientation="vertical"></LinearLayout> </ScrollView>
ほかのボタン等の操作があった時にLinearLayoutにTextViewでテキストを追加しています。
ここで、スイッチを一つ追加して、ONの時にはこれまで通りテキスト追加と自動スクロールを、
OFFの時にはテキスト追加のみの処理で自動でスクロールとかはしないように修正しようとしているのですが、
ScrollViewのどの属性を変更すればいいのかが分かりません
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。