Saturday, August 13, 2011

[android-developers] GridView not scaling to all screens

Hello,
I have a GridView that launches activities when we tap on a button/
image of it.
However, i'm facing an annoying display problem for it. I have an SGS
and a Galaxy 5 to test the app, if i configure the XML to correctly
display the GridView with the SGS(vertical/horizental spacing), then
when i install it on Galaxy 5 the GridView has a scroll view and it's
not stretching the screen. I don't know how we can get rid of this
problem.
Here is the XML (of the Galaxy 5):
<?xml version="1.0" encoding="utf-8"?>
<GridView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/gridview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:numColumns="2"
android:verticalSpacing="50dp"
android:horizontalSpacing="50dp"
android:stretchMode="columnWidth"
android:scaleType="fitXY"
android:background="@drawable/background3"
/>

Could you please help me to solve this problem ?
Thank you very much.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment