Horizontal scroll in grid Andoid


Last Updated:

  1. Monica28

    Monica28 Member This Topic's Starter

    Joined:
    Dec 2, 2012
    Messages:
    5
    Likes Received:
    0
    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

    Joined:
    Aug 1, 2011
    Messages:
    47
    Likes Received:
    3
    I would try asking this question at App Inventor Group

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

    Monica28 Member This Topic's Starter

    Joined:
    Dec 2, 2012
    Messages:
    5
    Likes Received:
    0
  4. rexes

    rexes Member

    Joined:
    Sep 6, 2011
    Messages:
    15
    Likes Received:
    0
    You can try something like this:
     
  5. haibin

    haibin New Member

    Joined:
    Jan 7, 2013
    Messages:
    1
    Likes Received:
    0
    <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>
     
  6. PavementPilot

    PavementPilot Well-Known Member

    Joined:
    Aug 1, 2011
    Messages:
    47
    Likes Received:
    3
    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.
     

Share This Page

Loading...