前言
最近在做一个阅读器,准备实现一个自动滚屏来方便阅读
实现
在xml中放入一个ScrollView 滑动条,滑动条里面放一个文本框
<RelativeLayout
android:id="@+id/relativeLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<Button
android:id="@+id/auto_scroll"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom='0dp'
android:text="Button" />
<ScrollView
android:id=