Ok,
For those who are running into the same issue the fix is simple create
your own custom ListView component!  and capture the
dispatchTouchEvent() inside there you can easily figure out if you are
scrolling or not! :)

code:
        @Override
        public boolean dispatchTouchEvent(MotionEvent ev)
        {
                int action = ev.getAction();

                if (!mbIsScrollEnabled) {
                        if (action == mLastAction) {
                                ev.setAction(MotionEvent.ACTION_CANCEL);
                                super.dispatchTouchEvent(ev);
                                return true;
                        }
                        mLastAction = action;
                }

                return super.dispatchTouchEvent(ev);
        }

I'm still working on the smooth scrolling by giving it a list item
number and to smoothly scroll there... While I'm trying to figure it
out if anyone got a good idea to create that let me know!

-Moto!

On Apr 25, 12:37 pm, Moto <medicalsou...@gmail.com> wrote:
> I'm really having a hard time with the amount of control one has over
> a ListView.
>
> I can't even get the getScrollX() or getScrollY() it always returns 0!
>
> I can't seem to get enough information to create a nice smooth
> scrolling using the scrollTo(..) scrollBy(..)
>
> Help?
>
> On Apr 24, 10:58 pm, Moto <medicalsou...@gmail.com> wrote:
>
>
>
> > I thought maybe setFocusable(false) would help but it doesn't... :(
>
> > On Apr 24, 5:08 pm, Moto <medicalsou...@gmail.com> wrote:
>
> > > I want to disable scrolling only of a ListView and keep it's items to
> > > still be click-able.
>
> > > The idea is to control the scrolling via other means and not user
> > > touch. i.e. up/down buttons, or random scrolling...
>
> > > Any help or pointers are appreciated!
> > > -Moto
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group 
> > > athttp://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 android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group 
> > athttp://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 android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to