Horizontal scroll in grid Andoid


  1. Monica28

    Monica28 Member

    i want scroll grid in horizontal direction in android can anyone plz help out to scroll the grid in horizonal view. I have used the scrollbar property in grid but it didnt worked for scrolling grid in horizontal.i have also used the horizontal scroll inside which i have placed grid but that also didnt worked.Thanks in advance if any help:confused:

    Advertisement
    :
  2. PavementPilot

    PavementPilot Well-Known Member

    I would try asking this question at App Inventor Group

    They may know more about this. I havent tried this before.
  3. rexes

    rexes Member

    You can try something like this:
  4. haibin

    haibin New Member

    <HorizontalScrollView
    android:layout_width="match_parent"
    android:layout_height="fill_parent" >

    <FrameLayout
    android:layout_width="fill_parent"
    android:layout_height="match_parent" >

    <LinearLayout
    android:id="@+id/linearLayout_gridtableLayout"
    android:layout_width="300dp"
    android:layout_height="match_parent"
    android:eek:rientation="horizontal" >


    <GridView
    android:id="@+id/tablegrid"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:layout_gravity="center"
    android:background="#ffffff"
    android:columnWidth="100dp"
    android:gravity="center"
    android:horizontalSpacing="1dp"
    android:scrollbarAlwaysDrawHorizontalTrack="true"
    android:scrollbarAlwaysDrawVerticalTrack="true"
    android:scrollbars="horizontal|vertical"
    android:verticalSpacing="1dp" />

    </LinearLayout>
    </FrameLayout>
    </HorizontalScrollView>
  5. PavementPilot

    PavementPilot Well-Known Member

    rexes and haibin, you both missed the point of App Inventor. You do not deal with java code in App Inventor. It is a jigsaw puzzle style blocks editor.
Loading...

Share This Page