android - Scrolling a GridView with only Buttons -


I have a GridView button with just the button Button (to work) But if I want to scroll Gridview with many items, then it is not working on my HTC Desire but it is possible in the emulator.

My Gridview:

  & lt; Android: layout_width = "fill_parent" android: numColumns = "auto_fit" Android: verticalSpacing = "10dp" Android: horizontalSpacing: GridView Android: id = "@ + id / gv_control_group" Android: layout_height = "wrap_content" Android: isScrollContainer = "true" = "10dp" Android: stretchMode = "columnWidth" Android: gravity = "center" Android: scrollingCache = "true" />   

GridViewItem:

  & lt; Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" Android: Orientation = "vertical" Android: gravity = "center_horseontal"> gt; Android: Android: Android: drawableTop = "@ drawable / green" /> Android: Android: Android: Android: Android: Android: Android: Android: layout_wind = "fail_parent" & lt; / LinearLayout & gt; Second question: When I turn on the device I can show more items next to the gridview next to each other. Now it completely stretches two objects to full width ...  
  android: stretchMode = "none"   

is not working

Edit:

This is a problem with the emulator in Android 2.2 2.2. But with 2.2 Android 2.2 scroll is no longer possible ... there is a solution for scrolling in 2.2?

itemprop = "text">

Resolved

The problem was that there was a button above the grid view, both LinearLayout itself was in a linear rhythm in a ScrollView. So prevent the GridView from scrollview properly (but not with Android 2.1!)

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -