Horizontal scroll in grid Andoid

Discussion in 'App Inventor' started by Monica28, Dec 21, 2012.

  1. Monica28

    Monica28 Member
    15

    Dec 2, 2012
    5
    0
    15
    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:thinking:
     

    Advertisement

  2. PavementPilot

    PavementPilot Well-Known Member
    26

    Aug 1, 2011
    48
    3
    26
    Male
    Professional Driver
    Vernon, BC
    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
    15

    Dec 2, 2012
    5
    0
    15
  4. rexes

    rexes Member
    15

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

    haibin New Member
    5

    Jan 7, 2013
    1
    0
    5
    <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
    26

    Aug 1, 2011
    48
    3
    26
    Male
    Professional Driver
    Vernon, BC
    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...