Android的GridView控件与分离器控件、分离器、Android、GridView

2023-09-06 03:31:46 作者:酒武至尊

是可能的有一个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.