10-16-2011 08:50 AM
I've a CustomAutoCompleteField in which i am using paint() to display text and cursor.
However getEditField().getCursorPosition() does not work when the field is direcltly clicked on at a position in case of Touch devices.
Can anyone please tell me how to get the cursor position when the field gets clicked on?
>It works when you just scroll through the field though
> navigationClick(...) does not work for AutoCompleField
10-16-2011 05:08 PM - edited 10-16-2011 05:08 PM
navigationClick is not activated on touch events.
The API you should use is touchEvent().
Using the input parameter you can get the X and Y of the touch.