一个是,listview控件不要贴着布局的边沿,能不能离边沿2个或3个像素
第二个是,listview的item中的一个控件能不能和item固定等宽的
------解决方案--------------------
1、android:margin_left="2dp"
android:margin_right="2dp"
2、不明白啥意思
------解决方案--------------------
listview空间里面有margin属性,可以设置距左右上下多少像素。。listview里面 有个子模版/也就是item/这个item布局的根节点可以设置他的lineartlout中的height高度,例如<linearlatyout width = 20 height 40/><Button/></linearltyout>,这个文件就是listview的item文件,他的根节点的高度被我设置了,那么listview里面每一项都是40的高度.
------解决方案--------------------
android:margin_left="2dip"
android:margin_right="2dip"
------解决方案--------------------
1. android:layout_weight="1" android:layout_marginLeft="2px" android:layout_marginRight="2px"
2. 自己定义一个布局文件作为listview的item,把里面的控件宽度设为match_parent