[android-beginners] Re: Understanding intercepting touch events

2009-07-16 Thread samothx

Solved - onTouch has to return true on ACTION_DOWN otherwise no
further events are sent..


On Jul 15, 11:19 am, samothx thomas.ru...@googlemail.com wrote:
 I am working on a TableLayout which I wantt to be able to exceed the
 width of the screnn. As I have learned ScrollViews only scroll
 vertically so I am looking at how to scroll my table manually.
 For this purpose I have created a custom view derived from TableLayout
 and overridden the onTouch method.
 Unfortunately all I receive are ACTION_DOWN events but no MOVE or UP
 events.
 So for finding out who`s fault it is I have put a ScrollView around my
 tableLayout and registered as onTouchListener on the ScrollView and
 there I see all the expected events.
 Can anybody tell me why the TableLayout does not give me these events
 or how I can convince it to do so ?
 Cheers Thomas
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Understanding intercepting touch events

2009-07-15 Thread samothx

I am working on a TableLayout which I wantt to be able to exceed the
width of the screnn. As I have learned ScrollViews only scroll
vertically so I am looking at how to scroll my table manually.
For this purpose I have created a custom view derived from TableLayout
and overridden the onTouch method.
Unfortunately all I receive are ACTION_DOWN events but no MOVE or UP
events.
So for finding out who`s fault it is I have put a ScrollView around my
tableLayout and registered as onTouchListener on the ScrollView and
there I see all the expected events.
Can anybody tell me why the TableLayout does not give me these events
or how I can convince it to do so ?
Cheers Thomas

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---