删除Android ListView的底部分隔线 [英] Remove the bottom divider of an android ListView

查看:120
本文介绍了删除Android ListView的底部分隔线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的身高固定为ListView.它在列表项之间有分隔符,但在最后一个列表项之后也显示分隔符.

I have a fixed height ListView. It has divider between list items, but it also displays dividers after the last list item.

是否可以在ListView中的最后一项之后不显示分隔线?

Is there a way to not display a divider after the last item in ListView?

推荐答案

只需添加 android:footerDividersEnabled="false" 到您的ListView描述

Just add android:footerDividersEnabled="false" to your ListView description

这篇关于删除Android ListView的底部分隔线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆