Prevent vertical scroll in GridView?

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Prevent vertical scroll in GridView?

Postby georgij » Mon Jun 01, 2009 3:54 pm

Hello, I have a GridView inside a vertical linear layout with many other widgets and have the effect that it shrinks to its min size (?) enforcing the user to scroll for the content. (see attached image)

Its defined like this:
Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <GridView
  2.  
  3.             android:layout_width="fill_parent"
  4.  
  5.             android:layout_height="wrap_content"
  6.  
  7.             android:numColumns="auto_fit"
  8.  
  9.             android:horizontalSpacing="6px"
  10.  
  11.             android:stretchMode="columnWidth"
  12.  
  13.             android:layout_centerHorizontal="true" />
Parsed in 0.001 seconds, using GeSHi 1.0.8.4


Do somebody know how to force the GridView to take as many space as necessary to view all content without scrolling?
Attachments
Bild 1.png
GridView with scroll bar.
Bild 1.png (5.66 KiB) Viewed 277 times
G1, what else.
georgij
Junior Developer
Junior Developer
 
Posts: 13
Joined: Wed Jan 14, 2009 12:22 am
Location: Germany

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 2 guests