# DragViewLayout **Repository Path**: OneMuYou/DragViewLayout ## Basic Information - **Project Name**: DragViewLayout - **Description**: 高仿微信可拖拽返回PhotoView - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-03-06 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 请前往简书 [点击跳转](https://www.jianshu.com/p/bf2e6e5a3ba0) ### 喜欢就 star下,非常感谢o(∩_∩)o~~~ #### 高仿微信可拖拽返回PhotoView,也支持像今日头条里面的小视频进行拖曳。如下图: ![video2gif_20180809_133624.gif](https://upload-images.jianshu.io/upload_images/6835615-88fd7e2e42969723.gif?imageMogr2/auto-orient/strip) ## 依赖: compile 'com.yanxuwen.DragView:DragView:1.6.0' #### 1.如果你要实现今日头条的小视频一样,viewpage滑动的时候,里面的控件也要跟着滑动,则参考Test1,只有修改里面的Frgament的xml就可以![gifeditor_20180809_122823.gif](https://upload-images.jianshu.io/upload_images/6835615-f1ad337884c4aefd.gif?imageMogr2/auto-orient/strip) #### 2.如更你要实现今日头条图片浏览器那样,下面的简介不跟着ViewPage滑动,则参考Test3 ![video2gif_20180809_123244.gif](https://upload-images.jianshu.io/upload_images/6835615-43157f29d25ba62f.gif?imageMogr2/auto-orient/strip) #### 3 以上功能都能实现,因为上面的今日头条gif,也是我写出来的效果,可以去参考 ####[github](https://github.com/yanxuwen/toutaio),[简书](https://www.jianshu.com/p/85307a257ac3) #### 4.如何使用 ![微信图片_20180809125834.png](https://upload-images.jianshu.io/upload_images/6835615-1c87557f77b2f4e6.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) #### 5 fragment ![微信图片_20180809125009.png](https://upload-images.jianshu.io/upload_images/6835615-3d9d4deda2d42f83.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) #### 6 fragment的xml ![微信图片_20180809125440.png](https://upload-images.jianshu.io/upload_images/6835615-df59db263a936670.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)