This can be helpful try it.
final int amount = yourTextView.getLayout().getLineTop(yourTextView.getLineCount()) - yourValue;
// if there is no need to scroll, amount will be <=0
if (amount > 0)
yourTextView.scrollTo(0, amount);
else
yourTextView.scrollTo(0, 0);