[android-beginners] Re: onTouch() not working properly, HTC Magic

2009-12-06 Thread JoshKrak
I've got a similar problem, but I did manage to figure this problem out; you need to return true or it seems to me that the Listener is cleared from the View and reverts back to its base listener. On Dec 2, 12:52 pm, Enrique López Mañas eenriquelo...@gmail.com wrote: Hello all, I'm trying to

[android-beginners] Re: onTouch()

2009-08-06 Thread Graham
Thanks. Exactly the answer i was looking for. On Aug 4, 4:43 pm, Balwinder Kaur (T-Mobile) balwinder.k...@t- mobile.com wrote: You need to override the onTouchEvent method in CustomDrawableView @Override         public boolean onTouchEvent(MotionEvent event) {                 switch

[android-beginners] Re: onTouch()

2009-08-04 Thread Balwinder Kaur (T-Mobile)
You need to override the onTouchEvent method in CustomDrawableView @Override public boolean onTouchEvent(MotionEvent event) { switch (event.getAction()) { // get your x and y values from event.getX() and event.getY() case