Package icyllis.modernui.text.method
Class Touch
java.lang.Object
icyllis.modernui.text.method.Touch
-
Method Summary
Modifier and TypeMethodDescriptionstatic intgetInitialScrollX(Spannable buffer) static intgetInitialScrollY(Spannable buffer) static booleanonTouchEvent(TextView widget, Spannable buffer, MotionEvent event) Handles touch events for dragging.static voidScrolls the specified widget to the specified coordinates, except constrains the X scrolling position to the horizontal regions of the text that will be visible after scrolling to the specified Y position.
-
Method Details
-
scrollTo
Scrolls the specified widget to the specified coordinates, except constrains the X scrolling position to the horizontal regions of the text that will be visible after scrolling to the specified Y position. -
onTouchEvent
Handles touch events for dragging. You may want to do other actions like moving the cursor on touch as well. -
getInitialScrollX
- Parameters:
buffer- The text buffer.
-
getInitialScrollY
- Parameters:
buffer- The text buffer.
-