listview 的item设置margin属性无效

Android 码拜 8年前 (2016-05-10) 1201次浏览
本人在做用listview布局时想设置item的 margin属性使每个item与手机之间有一个间距,但是设置属性时候无效,不能设置listview的margin属性,问一下一下这个怎么解决
解决方案

40

可以在其item中添加一个layout然后把你item中的布局放进去,设置其layout的margin

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明listview 的item设置margin属性无效
喜欢 (0)
[1034331897@qq.com]
分享 (0)