pullToRefreshListView去掉分割线方法
2023-03-07 09:08:11 时间
如上图用的是pullToRefreshListView 每个item之间有一条线,样式比较尴尬 ,需要去掉,去掉后的效果是这样的
去掉前代码:
<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" />
去掉后代码:
<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")是没用的 ,加上这个就可以了。
希望对大家有所帮助。
相关文章
- 9个时间序列交叉验证方法的介绍和对比
- Diffusion 和Stable Diffusion的数学和工作原理详细解释
- 联邦学习 (FL) 中常见的3中模型聚合方法的 Tensorflow 示例
- 使用Stable Diffusion和Pokedex的描述生成神奇宝贝图片
- YOLO家族系列模型的演变:从v1到v8(上)
- YOLO家族系列模型的演变:从v1到v8(下)
- Jupyter Lab 的 10 个有用技巧
- CycleMLP:一种用于密集预测的mlp架构
- 项目里没用过设计模式?看看 Nest.js 怎么用的
- 面试官:你懂 HTTP 缓存,那说下浏览器强制刷新是怎么实现的?
- 当你有了技术深度,很可能也同时有了技术广度
- 从 React 源码彻底搞懂 Ref 的全部 api
- 抓包理解 DNS 流程和 CDN 原理
- 写一个同事见了会打你的 Prettier 插件
- 自己写插件控制 Webpack 的 Chunk 划分,想怎么分就怎么分
- 放弃 console.log 吧!用 Debugger 你能读懂各种源码
- Nest.js 这么大的项目是怎么优化 ts 编译性能的?
- 一道 3 层的 TypeScript 面试题,你能答到第几层?
- 把 puppeteer 融入调试流程,调试体验爽翻了!
- 千万别让 console.log 上生产!用 Performance 和 Memory 告诉你为什么