you can use a scroller to create a smooth animation of the scroll.
there's an example here:
Android: Scroller Animation?
basically, all you need to do is start the scroller from 0 to the end of the list and call the scrollTo of the list with the scroller value.
another option is to create a timer that calls scrollBy every time.
EDIT: also, the way you created CountDownTimer causes it to run for 2000 milliseconds, and call onTick every 1ms. If you want it to run longer, just increase the overall time. I also suggest using a bigger interval - 1ms is way too often for display purposes. Try this:
new CountDownTimer(10000, 25) {
public void onTick(long millisUntilFinished) {
h.scrollBy(1,0);
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…