protected boolean scrollUp(TextView widget,Spannable buffer,int amount){
  final Layout layout=widget.getLayout();
  final int top=widget.getScrollY();
  int topLine=layout.getLineForVertical(top);
  if (layout.getLineTop(topLine) == top) {
    topLine-=1;
  }
  if (topLine >= 0) {
    topLine=Math.max(topLine - amount + 1,0);
    Touch.scrollTo(widget,layout,widget.getScrollX(),layout.getLineTop(topLine));
    return true;
  }
  return false;
}

protected boolean scrollUp ( TextView widget , Spannable buffer , int amount ) { final Layout layout = widget . getLayout ( ) ; final int top = widget . getScrollY ( ) ; int topLine = layout . getLineForVertical ( top ) ; if ( layout . getLineTop ( topLine ) == top ) { topLine -= 1 ; } if ( topLine >= 0 ) { topLine = Math . max ( topLine - amount + 1 , 0 ) ; Touch . scrollTo ( widget , layout , widget . getScrollX ( ) , layout . getLineTop ( topLine ) ) ; return true ; } return false ; }
performs a scroll up action . scrolls up by the specified number of lines .
