扫码关注官方订阅号
目前对于这类问题,我有两种解决的方案:1.在listView的外部动态的添加header2.提前写好一个头部的布局,默认是隐藏的,监听滑动,如果滑动到这个位置,让其显示
。。。。。。。。。。。。。。。。。。。。。。请问大家有其他的更好的实现方式吗?
闭关修行中......
你也可以看看这个项目是不是你需要的https://github.com/w446108264/ScrollableLayout
不算太明白你具体的需求,如果需要类似iOS列表分类悬挂的效果,应该是这个:https://github.com/JimiSmith/PinnedHeaderListView
如果是更深度的定制,建议试试CoordinatorLayout
CoordinatorLayout
这个不是新设计么 CoordinatorLayout
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
你也可以看看这个项目是不是你需要的
https://github.com/w446108264/ScrollableLayout
不算太明白你具体的需求,如果需要类似iOS列表分类悬挂的效果,应该是这个:https://github.com/JimiSmith/PinnedHeaderListView
如果是更深度的定制,建议试试
CoordinatorLayout这个不是新设计么 CoordinatorLayout