你怎么把一个边框一个ListView?你怎么、边框、ListView

由网友(幻梦少年i)分享简介:我想提出一个边界在我的列表视图是一些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 e...

我想提出一个边界在我的列表视图是一些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.

阅读全文

相关推荐

最新文章