Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 1st, 2012  |  syntax: None  |  size: 0.20 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. android: How to get text position from touch event
  2. onTouchEvent(event){
  3.   case touch_down:
  4.     get START text position
  5.  
  6.   case drag
  7.     get END text position
  8.     set selection range from START to END
  9. }