Android的GridView控件与分离器 [英] Android GridView with Separator

查看:130
本文介绍了Android的GridView控件与分离器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是可能的有一个GridView?

is possible to have a separator between elements of a GridView?

感谢

推荐答案

你可能有填充和背景颜色的发挥。设置背景为表到一种颜色,而背景中的表中的每个视图为另一种颜色。周围表中的每个视图设置1或2像素填充,你应该有之间的边界。

You'll probably have to play with padding and background colors. Set the background for the table to one color, and the background to each View in the table to another color. Set a 1 or 2 pixel padding around each View in the table, and you should have a border between.

这篇关于Android的GridView控件与分离器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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