passing touch events from one Gallery widget to another widget

by social hub » Thu, 18 Feb 2010 23:24:57 GMT

Sponsored Links
 Hi Guys,

I am trying to pass the same touch events on one widget to the other so they
both scroll at the same time and in same way.

I have two Gallery widgets one above and one below. If the above one is
scrolled then I want to pass the same touch event to the bottom widget so it
also scrolls the same way .

I have tried to use dispatchtouchevent events but I am facing an issue where
in if the bottom gallery widget has some edit text then the edit text gets
the key event and both widgets doesnt scroll anymore.. I have tried to set
focussable and editable to false on edittext even then it gets the touch
events. I think I am going in the right direction. However I need some
assistance in doing the right way.

Thanks in advance for your help


Other Threads

1. java sous android

bonsoir ,
j'ai un  code java qui marche sous pc mais quand je l'introduit dans
un projet android en faisant run j'obtient toujour un message qui me
force de quitter !!!Esct ce que vous pouvez me donner des
documentation sur java sous android , merci


2. Make View Selectable in Honeycomb

I have a bunch of views (LinearLayouts) that I have set clickable/selectable 
and set the following background on them:


This yields the desired affect on pre-honeycomb devices where when pressing 
the view, the backgrounds turns yellow etc... The problem is that the 
background continues to turn yellow even on honeycomb - instead of the 
proper blue background for all other lists in honeycomb when using 

I tried changing that to list_selector_holo_dark which exists 
in platforms/android-11/data/res/drawable/ but it didn't work but I get an 
error when compiling that it could not find the symbol.  

Anyone know if there is an easy way to get other views to use the honeycomb 
list selector?



3. Time Conversion - CST to LST(Local Standard Time)

4. NDEF intent filters

5. MyTouch 4G & iPhone 4 32GB

6. Help writing a sample Android App

7. jualan non android di sini