Hi, you can implements OnGestureListener and override onScroll method, you can get scroll distance with this method. This link has an example i used to create a horizontal scrolling ListView.
http://nan-technicalblog.blogspot.com/2008/12/android-how-to-use-horizontal-scrolling.html On 5 jan, 01:39, Moto <medicalsou...@gmail.com> wrote: > I've read all over and everyone one asks how to achieve a horizontal > scrolling on a LinearLayout. It's really bad that no one has a > solution to this issue... > > My question is; > > 1. How do you use Scroller class? do I have to extend the class? > 2. How could I track finger location movement on a layout? > > A little hard coded Horizontal moving of a Layout. > > Move Item Horizontally: > LinearLayout tbl = (LinearLayout)findViewById( R.id.MenuBarLayout ); > tbl.scrollTo(40, 0); > > Hopefully someone can point me to the right direction... > > Thanks, > 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 at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---