RichWebList
Introduction: webview + RecycleView 仿今日头条/网易新闻文章详情页面
Tags:
仿今日头条/网易新闻文章详情页面
使用 WebView+RecyclerView 组合,嵌套滚动。滚动机制基于 HeaderViewPager,在 dispatchTouchEvent 中进行事件处理。 除了 RecyclerView 还支持 ListView 等。
- 支持 url 或者 html 标签填充
- 填充的 html 图片支持点击回调
- 支持修改加载失败的默认图
更新记录: 20180920 添加空列表限制方案
文档待续完成中。。。
待完成功能:
- 1,video 标签全屏适配
- 2,滑动 webView 过程中图片懒加载
- 3,移动网络不加载图片,点击加载图片
- 4,定位阅读位置
参考资料:
- CoolIndicator
- https://github.com/Justson/CoolIndicator
- HeaderViewPager
- https://github.com/jeasonlzy/HeaderViewPager
- richeditor-android
- https://github.com/wasabeef/richeditor-android