Package icyllis.modernui.text.method
Class Touch
java.lang.Object
icyllis.modernui.text.method.Touch
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
getInitialScrollX
(Spannable buffer) static int
getInitialScrollY
(Spannable buffer) static boolean
onTouchEvent
(TextView widget, Spannable buffer, MotionEvent event) Handles touch events for dragging.static void
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.
-
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.
-