I have a custom
ViewSwitcher in which I implemented touch events so I
am able to scroll through screens using the touchscreen.
My layout hierarchy looks like this:
<ViewSwitcher> <LinearLayout> <ListView /> </LinearLayout> <LinearLayout> <ListView /> </LinearLayout> </ViewSwitcher>
Now, the problem is that the touch events are being consumed by the
ListViews and I am not able to switch the views. It works fine when I
don't have the
ListViews. I need to be able to scroll through the
views and scroll the
How do I solve this?
EDIT: I also need the
ListView items to be clickable.
Thanks in advance!