Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
477 views
in Technique[技术] by (71.8m points)

android - 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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...