<span style="color:#333333;"><span style="font-family: 'Microsoft YaHei', SimSun, Verdana, Arial, Helvetica, sans-serif; line-height: 1.5; white-space: pre-wrap;">只需在listview属性中添加 android:divider="#00000000" android:dividerHeight="18dp" 解释:divider属性是设置listview item的分隔线,这里把他设置成透明透明,</span></span><span style="font-family: 'Microsoft YaHei', SimSun, Verdana, Arial, Helvetica, sans-serif; line-height: 1.5; white-space: pre-wrap; color: rgb(51, 51, 51);">dividerHeight是设置</span><span style="font-family: 'Microsoft YaHei', SimSun, Verdana, Arial, Helvetica, sans-serif; line-height: 1.5; white-space: pre-wrap; color: rgb(51, 51, 51);">listview item的</span><span style="font-family: 'Microsoft YaHei', SimSun, Verdana, Arial, Helvetica, sans-serif; line-height: 1.5; color: rgb(51, 51, 51); white-space: pre-wrap;">高度。在是vidider属性的时候,要重新设置</span><span style="font-family: 'Microsoft YaHei', SimSun, Verdana, Arial, Helvetica, sans-serif; line-height: 1.5; white-space: pre-wrap; color: rgb(51, 51, 51);">dividerHeight,不然会不起作用。</span>
listview设置每个item的间距
最新推荐文章于 2023-06-15 00:08:11 发布