设置间距:
1.在xml布局文件中的listView下设置xml属性:
android:divider="#00000000" android:dividerHeight="18dp"2.在item的xml文件中,在第2层布局中添加任一布局模式包裹所有布局,在该布局模式中添加属性<span style="color: rgb(0, 0, 255); font-weight: bold; font-family: Menlo; font-size: 12pt; background-color: rgb(228, 228, 255);">layout_marginTop。</span><pre id="best-content-1284358069" class="best-text mb-10" name="code" style="color: rgb(51, 51, 51); font-size: 14px; white-space: pre-wrap; word-wrap: break-word; line-height: 26px; background-color: rgb(255, 255, 255);">设置分隔线颜色:<pre id="best-content-1284358069" class="best-text mb-10" name="code" style="white-space: pre-wrap; word-wrap: break-word; color: rgb(51, 51, 51); font-size: 14px; line-height: 26px; background-color: rgb(255, 255, 255);">1.<span style="color: rgb(51, 51, 51); font-size: 14px; line-height: 26px; white-space: pre-wrap; font-family: arial, 'courier new', courier, 宋体, monospace, 'Microsoft YaHei';">在xml布局文件中的listView下设置xml属性:</span>android:divider="#00000000"2.沿用上述第2方法,修改background属性