I also want to do same thing but my views in different activity. How can I do this?
On Monday, January 2, 2012 7:52:25 AM UTC+5:30, Yang Bo wrote: > > Sorry,I donnot quite get you. Are the views in the same activity? > 在 2011-12-30 上午10:31,"Sky" <[email protected] <javascript:>>写道: > >> I have one custom made view that I can drag across the screen >> horizontally. Within this view is a ScrollView. I already have it so I >> can decide whether the user is dragging across the screen horizontally >> or vertically, enabling/disabling the onTouchEvent() for the >> appropriate views. However the newly enabled view doesn't regain >> control until the user has released touch and presses down once more. >> >> So I believe the onTouchEvent in the view that has current control >> must pass off the touch event (MotionEvent) to the other view. >> >> I have tried simply calling the onTouchEvent() as well as >> dispatchTouchEvent. >> >> I have tried creating the MotionEvent.ACTION_UP event for the current >> view and then passing the MotionEvent.ACTION_DOWN followed by >> MotionEvent.ACTION_MOVE to the view I want to gain control. >> >> Nothing works. >> >> Can anyone help? I hope my explanation of what I'm doing is sufficient! >> >> -- >> 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]<javascript:> >> To unsubscribe from this group, send email to >> [email protected] <javascript:> >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en > > -- -- 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 --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

