前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >pullToRefreshListView去掉分割线方法

pullToRefreshListView去掉分割线方法

作者头像
再见孙悟空_
发布2023-02-10 20:43:36
5830
发布2023-02-10 20:43:36
举报

如上图用的是pullToRefreshListView  每个item之间有一条线,样式比较尴尬 ,需要去掉,去掉后的效果是这样的

去掉前代码:

代码语言:javascript
复制
 <com.jky.mobilebzt.pulltorefresh.PullToRefreshListView
        android:id="@+id/plv_q_and_s"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_above="@id/tv_enter_user_fb"
        android:background="@color/color_efefef"
        android:dividerHeight="3dp"
        android:headerDividersEnabled="false"
        android:footerDividersEnabled="false"
        android:paddingLeft="@dimen/padding_lllsmall"
        android:paddingRight="@dimen/padding_lllsmall" />

去掉后代码:

代码语言:javascript
复制
 <com.jky.mobilebzt.pulltorefresh.PullToRefreshListView
        android:id="@+id/plv_q_and_s"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_above="@id/tv_enter_user_fb"
        android:background="@color/color_efefef"
        android:divider="#00000000"
        android:dividerHeight="3dp"
        android:headerDividersEnabled="false"
        android:footerDividersEnabled="false"
        android:paddingLeft="@dimen/padding_lllsmall"
        android:paddingRight="@dimen/padding_lllsmall" />

就是加上了一句:   android:divider="#00000000" 设置成透明 我试了隐藏将高度设置为0( android:dividerHeight="0dp")是没用的 ,加上这个就可以了。

希望对大家有所帮助。

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2020-11-20,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档