Code Monkey home page Code Monkey logo

mpro's Introduction

共享元素小图到大图浏览,即recycleView到viewPager,pager左右滑动,共享动画item改变:

  • viewPager滑动到当前gridView还没有滑到的item.主动让gridView下滑
  • 共享元素滑动改变共享item
  • 注意:在网络图片加载中。增加了图片加载进度。解决动画的弊端

(为了效果展示压缩了 展示的gif,有点模糊,请下载观看最佳效果)

项目演示

滑动改变item 滑动到列表不可见,列表下滑

我的博客

第三方实现高仿微信图片拖拽退出

(如果用共享元素也能实现。大致实现原理是,调转一个透明的activity,getLocation记住点击控件的坐标,然后设置给透明activity里控件位置)

  • 支持图片缩放,支持gif动图,支持长图,对未加载图片有妥善的处理
  • 手指拖拽退出,单击退出
  • 支持自定义布局(本文暂且未提供,如需要,作者持续更新)

在此感谢以下:

sketch

ArtPlayer

特别感谢Diooto,支持原创。笔者只是在其基础上优化了一些,加上自己的理解

第三方功能展示

正常功能展示 视频 长图
gif动图 未加载图

mpro's People

Contributors

lihangleo2 avatar

Stargazers

Roman 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.