多くのテキストを含むテキストビューを持つアプリケーションを作成しており、テキストが終了するまで自動垂直スクロールを実行したいと考えています。しかし、自動スクロールを実行する方法がわかりません。
https://github.com/blessenm/SlideshowDemoプロジェクトを参照しました。しかし、このコードでは成功できませんでした..
ここに私のXMLコードがあります:
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/vertical_scrollview_id"
android:layout_width="wrap_content"
android:layout_height="0dip"
android:layout_weight="1.0"
android:fadingEdge="none"
android:scrollbars="none"
>
<LinearLayout
android:id="@+id/vertical_outer_layout_id"
android:layout_width="fill_parent"
android:layout_height="350dp"
android:orientation="vertical"
android:layout_marginTop="67dp"
android:paddingBottom="100dp"
>
<TextView
android:id="@+id/lyricView"
android:layout_width="fill_parent"
android:layout_height="250dp"
android:layout_marginTop="67dp"
android:background="#000000"
android:gravity="center"
android:maxLines="16"
android:paddingBottom="5dp"
android:paddingTop="8dp"
android:textColor="#ffffff"
android:textStyle="bold"
android:width="200dp" />
<ProgressBar
android:id="@+id/showLoading"
style="?android:attr/progressBarStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="-150dp"
android:background="#000000" />
</LinearLayout>
</ScrollView>
アイデアをください。事前にサンクス。私の単純なスクロール機能はうまく機能します。しかし、私は自動垂直スクロールを実行したい..