views:

12

answers:

0

What is best way to implement custom SoftKeyboard, so it recognize where user push, and where user release, and then use both coordinates to determine character? E.g. if i push Q, then move finger to E, then release. Application should get 2 coordinates. Basically simple line.

One way is to make it trough buttons and using onTouch(View v, MotionEvent event) method when button is touched. Then dispatch MotionEvent. Other way is to handle all input, and draw layout as "image". Same as above example, but just without buttons. Or maybe there is some better way (as I'm new to android and don't know it well yet)?

Thank you for any help or advices.