基于ExpandableListView实现评论和回复的功能。
- 提供了模拟数据,实现评论和回复的插入数据
- 对评论和回复数据进行了异常处理
- material design风格的详情页
- 处理了NestedScrollView、ExpandableListView和CoordinatorLayout的嵌套问题
- 点击某条评论,即可@ta进行回复
基于ExpandableListView实现评论和回复的功能。
License: MIT License
在原有的评论基础上,新建评论添加子评论没有显示回复内容
修改方法:
CommentDetailBean.DataBean.CommentBean.ReplyListBean detailBean = new
CommentDetailBean.DataBean.CommentBean.ReplyListBean("小红",replyContent);
adapter.addTheReplyData(detailBean,groupPosition);
for (int i = 0; i < commentsList.size(); i++) {
expandableListView.expandGroup(i);
}
Toast.makeText(MainActivity.this,"回复成功",Toast.LENGTH_SHORT).show();
添加完成回复之后,再次展开ListView,显示子评论
评论的回复为什么只显示一行,评论的回复的内容有好几条数据但是仅仅显示一条数据,我看了一下重写adapter适配器发法,我看你的demo重写了,计算list的高度,我用了也只显示一行,可以给我解答吗,应该怎么样修改让回复全部显示出来
评论组件数据存储在android端还是调后端接口存储?
回复的时候(不是评论) 底部弹出dialog 被键盘挡住了部分布局 发布按钮就被挡住了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.