Comments (18)
之前没有想到这个需求,但是我可以实现它,你需要的话我就写吧,到时通知你。支持复杂的布局你指的是多种不同type的类型布局吗?按原理是完全没问题的!
from pinnedsectionitemdecoration.
回复好及时,赞一个,有这个需要,我也看看你的源码吧,学习一下你实现的原理。我说的复杂布局就是在这个粘性头部里面播放视频,不是多个type的类型布局,由于今天刚看到你的项目,没仔细看你的源码,所以就咨询了一下。
from pinnedsectionitemdecoration.
应该是没问题的,我得去实验下,刚好最近在弄那个Ijkplayer
from pinnedsectionitemdecoration.
有没有一个参数可以让粘性头部可以粘住也可以划走:这个是划走是指那种侧滑么?
from pinnedsectionitemdecoration.
你是策划,就是上下滑动
from pinnedsectionitemdecoration.
不是侧滑,就是上下滑动
from pinnedsectionitemdecoration.
我试了,好像不能把粘性头部做成像普通item一样滑动消失,就是像item一样向上滑动的时候消失
from pinnedsectionitemdecoration.
你是想动态设置它固定或者不固定的意思吗?就是可以通过代码设置当前粘性头部是不是固定的意思?
from pinnedsectionitemdecoration.
你看看我新建的分支fix-header,是要这种效果吗?
from pinnedsectionitemdecoration.
Adpater.addHeaderView() 之后滑动异常
from pinnedsectionitemdecoration.
可以具体点吗?@Cenler
from pinnedsectionitemdecoration.
BaseQuickAdapter 添加一个头部, 会导致滑动头部滑动偏移异常, 具体效果貌似是忽略了头部Item的高度, 你可以添加一个头部试试 @oubowu
from pinnedsectionitemdecoration.
好 我试下 待会给你答复@Cenler
from pinnedsectionitemdecoration.
更新最新依赖即可,多谢提bug @Cenler
from pinnedsectionitemdecoration.
使用BaseQuickAdapter2.+后的版本试了下, 两个库的事件处理机制有交集, 导致PinnedHeader与被覆盖的Item都触发了事件回调. 另外还有头部的点击事件, 滑动隐藏后再展示事件的点击判断区域(ClickBounds)与PinnedHeader不匹配, 还有个情况就是PinnedHeader固定顶部时如果存在CheckBox or RadioButton等控件时状态会丢失, 准备拿源码进行定制!!
from pinnedsectionitemdecoration.
原因就是BaseQuickAdapter2.+后它也是用ItemTouchHelper来做点击的判断,这个跟我的冲突了 @Cenler
其他问题我再看看
from pinnedsectionitemdecoration.
事件处理机制有交集解决方法,我那边通过反射拿到mOnItemTouchListeners,然后把我的mItemTouchListener添加到索引0位置;之前交集的问题是由于他addOnItemTouchListener比我那里快,所以他没有拦截还传给我;而我的话处理完头部的话就把事件全部消费掉了。更新依赖即可,其他两个再看@Cenler
from pinnedsectionitemdecoration.
全部解决 @Cenler
from pinnedsectionitemdecoration.
Related Issues (20)
- 吸顶tab切换 HOT 2
- 每次刷新数据的时候,上面的悬停view会挡住第一行,请问下怎么解决呢 HOT 1
- 配合XRecycleView使用会出现粘性头部和实际数据位置不符的问题
- 设置divider比较宽的时候,最左边第一张图片宽度被压缩,比同行的另外几张窄
- 与databinding 使用 文字不显示
- Header根布局必须使用FrameLayout否则设置背景色无效
- java.lang.ClassCastException: android.widget.FrameLayout cannot be cast to android.widget.TextView
- 设置吸顶decoration,出现如图问题 HOT 1
- ItemDecoration标签点击事件异常(标签布局中部分子View点击事件不生效)
- ![image](https://user-images.githubusercontent.com/6427399/60393522-45f34700-9b49-11e9-821b-94409c372b17.png)
- 点击事件回调方法onHeaderClick(View view, int id, int position)中,第一个参数(被点击的View)可能并不是真实标签中的view, 点击事件中刷新标签UI可能不生效 HOT 1
- 滑动的时候 Rv的srcollbar 的高度会一直变化,一会长一会短 这个有办法处理吗?
- 怎么设置分割线的大小 HOT 1
- RecyclerView的clipToPadding="false"属性不生效
- 怎样实现增量插入更新到对应的组内
- 当悬浮view有网络图片时 加载空白 可能是还没有加载完成时,已经好创建了view
- 自适应宽高的瀑布流
- jcenter 即将于五月一日关停. 可以将库上传到 jitpack.io 之类的地方吗 HOT 1
- header item layout 中 有自定义View 悬浮时不显示
- 这个项目已经很久不维护了,我fork并更新了依赖
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pinnedsectionitemdecoration.