All Projects → xiaosong520 → ViewDragHelperDemo

xiaosong520 / ViewDragHelperDemo

Licence: other
利用ViewDragHelper 打造一个仿陌陌/Qzone 可拖拽下拉关闭/左右切换的页面

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to ViewDragHelperDemo

YoutubeFloatingVideo
Simple Youtube Floating Video Library
Stars: ✭ 37 (-13.95%)
Mutual labels:  draggableview
react-spring-bottom-sheet
Accessible ♿️, Delightful ✨, & Fast 🚀
Stars: ✭ 604 (+1304.65%)
Mutual labels:  draggableview
pulldownlayout
PullDownLayout is a small library that allows you to implement a view that can be dragged down your layout. PullDownLayout can also be used to implement Pull-To-Dismiss feature for your activities and fragments.
Stars: ✭ 16 (-62.79%)
Mutual labels:  viewdraghelper
Cardslidepanel
enable users to slide card to the left or right smoothly and continuously
Stars: ✭ 2,377 (+5427.91%)
Mutual labels:  viewdraghelper

ViewDragHelperDemo

利用ViewDragHelper 打造一个可拖拽下拉关闭/左右切换的页面。

博客地址: ViewDragHelper (三)- 打造仿陌陌视频播放页(深入篇)

QZone QQ空间的效果:

QZone

MoMo播放页的效果:

Momo.gif

demo实现的拖拽效果:

效果图一

demo真机演示效果:

效果图二

主要的功能点有如下几个:

  1. 滑动方向判定。
  2. 单个方向的拖拽限制。
  3. 事件分发以及拦截。
  4. 平移动画处理。
  5. 下拉时缩放及背景透明处理。
  6. 背景高斯图片替换处理。
  7. 嵌套ScrollView / RecyclerView事件冲突处理。
  8. 多点触控 Invalid pointerId 问题解决。
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].