Go Back   Android Forums > Android Development > Application Development > App Inventor

test: Reply
 
LinkBack Thread Tools
Old December 20th, 2012, 11:15 PM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Dec 2012
Posts: 5
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Confused Horizontal scroll in grid Andoid

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

Advertisements
Monica28 is offline  
Reply With Quote
sponsored links
Old December 21st, 2012, 08:57 AM   #2 (permalink)
Junior Member
 
PavementPilot's Avatar
 
Join Date: Aug 2011
Location: Vernon, BC
Gender: Male
Posts: 47
 
Device(s): Note 3 Tab 3 10.1 Gear
Carrier: Bell

Thanks: 4
Thanked 3 Times in 3 Posts
Default

I would try asking this question at App Inventor Group

They may know more about this. I havent tried this before.
__________________
PavementPilot Software on Google Play
PavementPilot is offline  
Reply With Quote
Old December 22nd, 2012, 12:24 PM   #3 (permalink)
New Member
Thread Author (OP)
 
Join Date: Dec 2012
Posts: 5
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Any help will be appreciated

Monica28 is offline  
Reply With Quote
Old December 29th, 2012, 04:27 AM   #4 (permalink)
Junior Member
 
Join Date: Sep 2011
Posts: 15
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can try something like this:
Quote:
<HorizontalScrollView
android:id="@+id/horizontalScrollView1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:fillViewport="true"
android:scrollbars="horizontal" >

<GridView
android:layout_width="500dp"
android:layout_height="400dp"
android:id="@+id/grid"
android:columnWidth="300dp"
android: padding="5dp"
android:horizontalSpacing="100dp"
android:verticalSpacing="10dp"
android:scrollbars="horizontal"
android:stretchMode="spacingWidthUniform">
</GridView>
</HorizontalScrollView>
rexes is offline  
Reply With Quote
Old January 7th, 2013, 01:23 AM   #5 (permalink)
New Member
 
Join Date: Jan 2013
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

<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"
androidrientation="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>
haibin is offline  
Reply With Quote
Old January 9th, 2013, 11:37 PM   #6 (permalink)
Junior Member
 
PavementPilot's Avatar
 
Join Date: Aug 2011
Location: Vernon, BC
Gender: Male
Posts: 47
 
Device(s): Note 3 Tab 3 10.1 Gear
Carrier: Bell

Thanks: 4
Thanked 3 Times in 3 Posts
Default

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.
PavementPilot is offline  
Reply With Quote
Reply
Tags
android


Go Back   Android Forums > Android Development > Application Development > App Inventor
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 02:26 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.