Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 759
Hawkins Avatar asked Mar 13 '11 17:03

Hawkins


People also ask

How to remove GridView border?

To remove the border from the grid, you have to set the DrawBorder property of the GridViewElement & GroupPanelElement to false.

How do you get rid of the space between grids in flutter?

You can just remove the bottom padding of a GridView using padding: EdgeInsets. zero . Cool!


1 Answers

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.

like image 101
Macarse Avatar answered Sep 27 '22 14:09

Macarse