删除 GridView 周围的边框空间 [英] Delete border space around GridView

查看:27
本文介绍了删除 GridView 周围的边框空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试移除 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 

不能解决问题.我不使用任何 9path 背景图片.有什么问题?

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

推荐答案

您的问题"是 selector.您可以使用以下方法更改它:android:listSelector.

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

您可以尝试使用 android:listSelector="@null 删除选择器或创建自定义选择器.这里的教程.

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

这篇关于删除 GridView 周围的边框空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆