Coder Social home page Coder Social logo

recylerviewmultiheaderview's Introduction


本库是基于RecyclerViewHeader的扩展。 ###RecyclerView头View的ViewGroup,支持与WebView,Video,View 嵌套使用

特性

  1. 解决webView在RecyclerView中的滑动冲突和点击事件
  2. 增加滑动RecyclerView中视频为小屏模式(功能参考美拍)
  3. 优化过渡绘制卡的问题

#还未完善的问题

  1. RecyclerView和webView之间切换时滑动完美 但两个之间的滑动惯性传递不是很完美 (欢迎留言惯性的优化方案)

Demo

可以下载Demo查看。 Download

截图

HeaderVideo HeaderView

HeaderWebView

引入

  • Gradle
compile 'com.yyl.multiview:recyclerview-multiheaderview:1.0.5'

开发

在xml中引用RecyclerViewMultiHeader:

    <com.yyl.multiview.RecyclerViewMultiHeader
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:viewState="video"
            app:videoScale="0.5625">//video 9/16
....
        </com.yyl.multiview.RecyclerViewMultiHeader>
    
    
    
// 设置视频监听。
    //视频小窗口开关
   public void setScreenSmallDisable(boolean stateVideoSmallDisable)
    //视频小窗口监听
   public void setOnVideoSmallCallBack(OnVideoSmallCallBack onVideoSmallCallBack)

参考代码

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

License

MIT License.

recylerviewmultiheaderview's People

Contributors

mengzhidaren avatar

Watchers

James Cloos avatar xiongxiaolong avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.