Not allowing horizontal spacing between grid view items,

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

Not allowing horizontal spacing between grid view items,

Postby jagtap.jj1 » Fri Jan 23, 2009 7:22 am

Not allowing horizontal spacing between grid view items,

I am using following for grid view , I don't want horizontal space between grid view item.
android:horizontalSpacing="0px"
android:verticalSpacing="0px"

by using this there no vertical space between item. But the horizontal space remain there, how to
eliminate this horizontal space between grid items.

will anybody suggest.
Attachments
device3.png
device3.png (9.76 KiB) Viewed 599 times
java-android developer
User avatar
jagtap.jj1
Senior Developer
Senior Developer
 
Posts: 124
Joined: Fri Aug 22, 2008 11:52 am
Location: India(Mumbai)

Top

Postby MrSnowflake » Fri Jan 23, 2009 7:35 am

have the buttons set fill_parent or give them all gravity 1
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby jagtap.jj1 » Fri Jan 23, 2009 8:21 am

thank you for reply,
actually all these are images, I am referring GridView API demo,
I tried for both fill_parent and wrap_content, then too it is not working., and also android:layout_weight="1"
is there any solution to this problem. if so plz reply me.
java-android developer
User avatar
jagtap.jj1
Senior Developer
Senior Developer
 
Posts: 124
Joined: Fri Aug 22, 2008 11:52 am
Location: India(Mumbai)

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 6 guests