删除GridView的左右边框的空间 [英] Delete border space around GridView

查看:199
本文介绍了删除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 ?

推荐答案

您的问题是选择。 您可以使用更改:<一href="http://developer.android.com/reference/android/widget/AbsListView.html#attr_android%3alistSelector">android:listSelector.

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

您可以尝试用机器人移除选择:listSelector =@空或创建一个自定义的<一个href="http://www.stealthcopter.com/blog/2010/08/making-$p$pttier-buttons-in-android-xml-rolloverselection-focus-effects-9patch-images-and-transparency/">Here's教程。

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

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

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