你怎么把一个边框一个ListView? [英] How do you put a border around a ListView?

查看:131
本文介绍了你怎么把一个边框一个ListView?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想提出一个边界在我的列表视图是一些pixes宽。我希望它去围绕整个列表视图片。我怎样才能做到这一点?谢谢

I would like to put a border around my listview that is a few pixes wide. I want it to to go around the entire listview piece. How can I do this? thanks

推荐答案

对于第一个走的LinearLayout和分配的一些颜色的线性布局,并采取了线性布局的列表视图。将安卓layout_margin =10dp属性列表视图。这意味着,在所有4个侧面10dp空间将被留下。这显示为列表视图的边界

For this first take the LinearLayout and assign that linear layout with some color and take a list view in that linear layout. Set the android:layout_margin="10dp" property for list view . That means on all 4 sides 10dp space will be left. This shown as the border of the list view.

这篇关于你怎么把一个边框一个ListView?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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