Hawkins
Hawkins

Reputation: 407

Delete border space around GridView

I try to remove red border around GridView to completely fill screen my calendar(without padding from left, right and top).

margin=0
padding=0
background=@null 

isn't fix the problem. I don't use any 9path background image. what's the problem ?

enter image description here

Upvotes: 17

Views: 9678

Answers (2)

Rickey
Rickey

Reputation: 1

The following sets the color around the image to white:

android:listSelector="@drawable/solid_white"

Upvotes: 0

Macarse
Macarse

Reputation: 93133

Your "issue" is the selector. You can change it using: android:listSelector.

You can try removing the selector with android:listSelector="@null or creating a custom one. Here's a tutorial.

Upvotes: 46

Related Questions