Yes, you can use the following method:
scrollView.post(
new Runnable() {
@Override
public void run() {
new CountDownTimer(1500, 20) {
@Override
public void onTick(long millisUntilFinished) {
scrollView.scrollTo(0, (int) (textViewAbove.getBottom()-millisUntilFinished));
}
@Override
public void onFinish() {
}
}.start();
}
}
);
Where textViewAbove
is the TextView
above the textView[4]
, textView[3]
in that case.
Hope it helps!