I did not try passing onFling and onScroll. But, I figured out the
reason for it.

I have a lot of text views in my layout. The app has to launch another
view when the user clicks on the text view.

Passing onTouch events was working perfectly earlier, but after I set
the property clickable as true, again the two HorizontalScrollViews
were out of sync and acted weirdly. I guess I will have to extend the
standard TextView widget and customize it to suit my requirement.

Thank you,
AJ

On Mar 19, 6:42 pm, social hub <[email protected]> wrote:
> have u tried passing onfling and onscroll events also. that might solve some
> of ur problems.
>
> On Fri, Mar 19, 2010 at 8:40 AM, Ajay <[email protected]> wrote:
> > Oops!! I still have the problem. Any thoughts anyone?
>
> > Thank you,
> > AJ
>
> > On Mar 19, 11:54 am, Ajay <[email protected]> wrote:
> > > Finally I found a way to synchronize the scrolls. I was using a
> > > gesture listener to listen for scrolls/flings which did not give me
> > > accurate results. Now I simply pass the onTouch events from one view
> > > to the other view. This makes both the views to scroll perfectly in
> > > sync.
>
> > > On Mar 18, 5:26 pm, Ajay <[email protected]> wrote:
>
> > > > Hi,
> > > >    I am having two horizontal scroll views in my app. If I do a scroll/
> > > > fling in one view, I have to scroll/fling the other view. It does
> > > > work, but it has a minor mismatch sometimes in the amount of scroll. I
> > > > suspect this might be because theonFlinglistener callback has a
> > > > float velocity, whereas the call method fling() takes an integer
> > > > parameter. Any idea why is this mismatch?
>
> > > > Thank you,
> > > > AJ
>
> > --
> > 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]<android-developers%[email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> > To unsubscribe from this group, send email to android-developers+
> > unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> > ME" as the subject.
>
>

-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to