在做项目的过程中,遇到的问题是:item与ListView之间的margin问题,一直是失效的。解决办法是:
设置item与ListView之间的margin最好在item的xml中搞定,且最好在item中的最上层多布局一个透明的(默认是)xxxLayout,这个
layout看似无用,其实是规避了item与ListView之间的问题。
同样问题,参考:http://my.oschina.net/xesam/blog/155542
http://blog.youkuaiyun.com/ethan_xue/article/details/9852209
本文探讨了解决ListView与Item之间margin失效的问题,通过在Item的xml中添加透明布局来规避该问题,并提供了相关解决方案的链接。

被折叠的 条评论
为什么被折叠?



