http://developer.android.com/reference/android/view/ViewGroup.html#onInterceptTouchEvent(android.view.MotionEvent)
On Thu, Jun 16, 2011 at 7:58 AM, zosq <[email protected]> wrote: > 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 ListView. How do I solve this? > > Thanks in advance! > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

