Hi Moto, did you implement the OnGestureListener for your LinearLayout? Here is a sample i made to test the horizontal scrolling, check it out.
http://0467525716.free.fr/Android/scrollTest.zip On 6 jan, 02:10, Moto <[email protected]> wrote: > I tried using your code but I'm not sure if I can listen for event on > my LinearLayout...? I say this because I've been trying to get a touch > event and it just doesn't happen. > Any pointers? > Thanks! > > Here is my XML layout > <LinearLayout > android:id="@+id/MenuBarLayout" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > android:layout_marginBottom="0px" > android:background="@drawable/bottom_menu_bar"> > > <Button android:id="@+id/btnMenu1" > android:text="Fav" android:layout_width="80px" > android:layout_height="50px"> > </Button> > <Button android:id="@+id/btnMenu2" > android:text="Top Hits" > android:layout_width="80px" > android:layout_height="50px"> > </Button> > <Button android:id="@+id/btnMenu3" > android:text="Genre" > android:layout_width="80px" > android:layout_height="50px"> > </Button> > <Button android:id="@+id/btnMenu4" > android:text="Shake Me" > android:layout_width="80px" > android:textSize="12px" android:layout_height="50px"> > </Button> > <Button android:id="@+id/btnMenu5" > android:text="Search" > android:layout_width="80px" > android:layout_height="50px"> > </Button> > <Button android:id="@+id/btnMenu6" > android:text="Settings" > android:layout_width="80px" > android:layout_height="50px"> > </Button> > > </LinearLayout> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

