Need help with RecylerViewMultiHeaderView?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

mengzhidaren
131 Stars 22 Forks 35 Commits 0 Opened issues

Description

解决webView滑动冲突,支持与WebView,VideoView(miniVideo), HeaderView 嵌套使用

Services available

!
?

Need anything else?

Contributors list

No Data


本库是基于RecyclerViewHeader的扩展。

RecyclerView头View的ViewGroup,支持与WebView,Video,View 嵌套使用

特性

  1. webView完美嵌入RecyclerView
  2. RecyclerView和webView之间滑动惯性传递
  3. 滑动RecyclerView中视频切换为mini小屏
  4. 优化过渡绘制卡顿的问题

截图

HeaderVideo HeaderView

HeaderWebView

引入

  • Gradle
    groovy
    implementation 'com.yyl.multiview:recyclerview-multiheaderview:1.1.3'
    

开发

在xml中引用RecyclerViewMultiHeader(参考demo) ```xml //video 9/16 ....


viewState //显示比例 //按videoScale比例 显示headView 在全屏后自动撑满全屏 //以childView最大高度为最终高度 //childView为全屏 其中setRequestFullWeb(false)会在webView内容不足一屏时 不填充整个VIEW //以最顶层childView高度为最终高度 // 设置视频监听。 //视频小窗口开关 public void setScreenSmallDisable(boolean stateVideoSmallDisable) //视频小窗口监听 public void setOnVideoSmallCallBack(OnVideoSmallCallBack onVideoSmallCallBack)

//取消关联
detach() 
### 参考代码
* [RecyclerViewHeader](https://github.com/blipinsk/RecyclerViewHeader)

本库的是以RecyclerViewHeader为基础在功能上做的扩展,感谢作者开源库。

License

MIT License.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.