Methods Summary |
---|
protected boolean | bottom(android.widget.TextView widget, Spannable buffer)
return scrollBottom(widget, buffer);
|
protected boolean | down(android.widget.TextView widget, Spannable buffer)
return scrollDown(widget, buffer, 1);
|
protected boolean | end(android.widget.TextView widget, Spannable buffer)
return bottom(widget, buffer);
|
public static MovementMethod | getInstance()
if (sInstance == null)
sInstance = new ScrollingMovementMethod();
return sInstance;
|
protected boolean | home(android.widget.TextView widget, Spannable buffer)
return top(widget, buffer);
|
protected boolean | left(android.widget.TextView widget, Spannable buffer)
return scrollLeft(widget, buffer, 1);
|
protected boolean | lineEnd(android.widget.TextView widget, Spannable buffer)
return scrollLineEnd(widget, buffer);
|
protected boolean | lineStart(android.widget.TextView widget, Spannable buffer)
return scrollLineStart(widget, buffer);
|
public void | onTakeFocus(android.widget.TextView widget, Spannable text, int dir)
Layout layout = widget.getLayout();
if (layout != null && (dir & View.FOCUS_FORWARD) != 0) {
widget.scrollTo(widget.getScrollX(),
layout.getLineTop(0));
}
if (layout != null && (dir & View.FOCUS_BACKWARD) != 0) {
int padding = widget.getTotalPaddingTop() +
widget.getTotalPaddingBottom();
int line = layout.getLineCount() - 1;
widget.scrollTo(widget.getScrollX(),
layout.getLineTop(line+1) -
(widget.getHeight() - padding));
}
|
public boolean | onTouchEvent(android.widget.TextView widget, Spannable buffer, android.view.MotionEvent event)
return Touch.onTouchEvent(widget, buffer, event);
|
protected boolean | pageDown(android.widget.TextView widget, Spannable buffer)
return scrollPageDown(widget, buffer);
|
protected boolean | pageUp(android.widget.TextView widget, Spannable buffer)
return scrollPageUp(widget, buffer);
|
protected boolean | right(android.widget.TextView widget, Spannable buffer)
return scrollRight(widget, buffer, 1);
|
protected boolean | top(android.widget.TextView widget, Spannable buffer)
return scrollTop(widget, buffer);
|
protected boolean | up(android.widget.TextView widget, Spannable buffer)
return scrollUp(widget, buffer, 1);
|