转自:http://www.getcn.net/index.php?mod=skill&action=detail&id=44042
首先1,
获得ScrollView sc = (ScrollView) findViewById(R.id.scroll);//scroll对象
LinearLayout mlayout = (LinearLayout) findViewById(R.id.mlayout);//scrollView中包含的布局对象
2,定义一个Handler
private final Handler mHandler = new Handler();
3,实现一个线程
4,开始滚动
mHandler.post(ScrollRunnable);
5,暂停滚动
mHandler.removeCallbacks(ScrollRunnable);