Try using
android:stretchMode="spacingWidthUniform"

On Aug 13, 2:04 pm, Alaeddine Ghribi <alaeddineghr...@gmail.com>
wrote:
> 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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to