Code Monkey home page Code Monkey logo

dragviewlayout's Introduction

请前往简书 点击跳转

喜欢就 star下,非常感谢o(∩_∩)o~~~

高仿微信可拖拽返回PhotoView,也支持像今日头条里面的小视频进行拖曳。如下图:

video2gif_20180809_133624.gif

依赖:

compile 'com.yanxuwen.DragView:DragView:1.6.0'                 

1.如果你要实现今日头条的小视频一样,viewpage滑动的时候,里面的控件也要跟着滑动,则参考Test1,只有修改里面的Frgament的xml就可以gifeditor_20180809_122823.gif

2.如更你要实现今日头条图片浏览器那样,下面的简介不跟着ViewPage滑动,则参考Test3

video2gif_20180809_123244.gif

3 以上功能都能实现,因为上面的今日头条gif,也是我写出来的效果,可以去参考

####github,简书

4.如何使用

微信图片_20180809125834.png

5 fragment

微信图片_20180809125009.png

6 fragment的xml

微信图片_20180809125440.png

dragviewlayout's People

Contributors

yanxuwen avatar

Watchers

James Cloos 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.