-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
您好,我的需求是需要折叠效果,比如展开后再点击就可以折叠; #1
Comments
没搞过,这个还真得去研究 |
可以参考下这个:https://blog.csdn.net/qq_16624353/article/details/96331114 |
同需求一个 “收起” 的功能... |
同求 |
已经实现了,我们公司需求是,外层评论是时间倒序排列,评论里的回复是时间正序排列,所以跟抖音又不一样,改起来麻烦。用BaseRecyclerViewAdapterHelper,添加3种类型的item,一种是评论,一种是评论的回复,一种是展开收起的View。评论和回复的数据结构一样,都有id,但是评论的parentId为空,回复的parentId为这条评论的id(手动赋值的)。展开收起的View也包含parentId(手动赋值的)维护了整个评论的2个回复列表,一个列表用来放所有的回复,另一个仅用来放未展开时的数据,点击加载更多时,去获取数据,放入列表1,并将数据插入到Adapter里位置为展开收起View之前。展开收起的动画使用Recyclerview本身的动画,即调用notifyItemRangeChanged(start, end)方法,当对应位置的item添加或删除时,会有动画。 |
可以分享一下吗 |
在项目里没抽取出来。排序跟抖音是相反的,如果你要用,需要改逻辑。 |
请求我该如何修改VerticalCommentLayout 这个View
The text was updated successfully, but these errors were encountered: