如你所见,这是一个过度效果。 用一个群友的话来说就是丝滑过度根本看不出来是两个Activity。


这是两个Activity,看起来顺化的原因是使用了一种叫做共享元素的概念。Android 5.0自带共享元素的实现,但是有一些缺点比如:不能改变大小, 不能兼容4.X 等等。













  1. 左侧箭头的Y轴平移动画。
  2. 右侧搜索的Y轴平移动画。
  3. 中间文字以及背景的Y轴平移动画。
  4. 中间背景的X缩放动画。
  5. 下部View内容的透明动画。


当然返回的时候,只需要往相反的地方做动画~ 另外还需要特别注意的地方有,在启动或者关闭Activity的时候,需要调用下面的代码来关闭切换动画来保证效果。



如果你喜欢 欢迎Star,也可以加入我的Android酒馆:425983695

参考文章: 低版本实现共享元素动画


  1. I just want to tell you that I am newbie to blogging and site-building and really loved this page. Probably I’m likely to bookmark your blog . You really come with outstanding well written articles. Kudos for revealing your blog site.

  2. Hi there this is somewhat of off topic but I was wanting to know if blogs use WYSIWYG editors or if you have to manually code with HTML. I’m starting a blog soon but have no coding know-how so I wanted to get advice from someone with experience. Any help would be greatly appreciated!

  3. All absolutely free clipart is created by an identical designer. Nowadays you know the best place to locate totally free clipart, you can save a good deal of Googling! AAA Clipart is a superb site on account of the substantial selection of completely free clipart images available there.

  4. I just hope to inform you you that I am new to writing a blog and certainly liked your website. Probably I am prone to save your blog post . You indeed have memorable article blog posts. Like it for swapping with us your very own domain article

  5. Hello There. I found your blog using msn. This is a really well written article. I will make sure to bookmark it and come back to read more of your useful information. Thanks for the post. I will certainly return.

  6. Merely a smiling visitor here to share the love (:, btw great design and style. “Justice is always violent to the party offending, for every man is innocent in his own eyes.” by Daniel Defoe.

  7. I simply desire to inform you that I am new to putting up a blog and certainly admired your webpage. More than likely I am likely to store your blog post . You really have amazing article blog posts. Like it for discussing with us all of your internet document

  8. I just wish to inform you that I am new to putting up a blog and incredibly admired your webpage. Probably I am probably to store your blog post . You truly have impressive article material. Love it for telling with us your main internet site article

  9. Someone essentially lend a hand to make significantly posts I’d state. This is the first time I frequented your website page and so far? I amazed with the research you made to make this actual post extraordinary. Fantastic activity!

  10. Thank you a bunch for sharing this with all of us you actually know what you’re talking approximately! Bookmarked. Please additionally talk over with my website =). We will have a hyperlink alternate agreement between us!

  11. Hey There. I found your blog using msn. This is an extremely well written article. I’ll be sure to bookmark it and come back to read more of your useful information. Thanks for the post. I will definitely comeback.

  12. Hello here, just turned out to be receptive to your blog site through yahoo, and found that it’s truly interesting. I’ll like should you decide persist this informative article.

  13. you’re in point of fact a excellent webmaster. The website loading pace is amazing. It sort of feels that you’re doing any unique trick. Moreover, The contents are masterpiece. you’ve done a great activity on this topic!

  14. I’ve been surfing on-line greater than 3 hours as of late, yet I by no means discovered any attention-grabbing article like yours. It¡¦s lovely value sufficient for me. In my view, if all website owners and bloggers made excellent content material as you did, the web shall be a lot more helpful than ever before.

  15. Thanks a lot for sharing this with all folks you really understand what you’re talking approximately! Bookmarked. Kindly also seek advice from my site =). We could have a link change agreement among us!

  16. You are my aspiration , I possess few web logs and very sporadically run out from to brand.I conceive this web site holds some rattling fantastic info for everyone. “As we grow oldthe beauty steals inward.” by Ralph Waldo Emerson.

  17. I’ve been surfing online more than 3 hours today, yet I never discovered any attention-grabbing article like yours. It is lovely worth enough for me. In my opinion, if all webmasters and bloggers made excellent content as you probably did, the web will likely be much more useful than ever before. “A winner never whines.” by Paul Brown.

  18. I have been exploring for a little for any high quality articles or blog posts on this sort of space . Exploring in Yahoo I at last stumbled upon this web site. Reading this info So i¡¦m satisfied to convey that I have a very good uncanny feeling I discovered just what I needed. I such a lot surely will make sure to don¡¦t fail to remember this web site and give it a glance on a continuing basis.

  19. Good ¡V I should certainly pronounce, impressed with your site. I had no trouble navigating through all the tabs and related information ended up being truly simple to do to access. I recently found what I hoped for before you know it at all. Quite unusual. Is likely to appreciate it for those who add forums or anything, website theme . a tones way for your client to communicate. Nice task..

  20. My husband and i have been quite glad when Jordan managed to do his survey using the ideas he discovered from your own web pages. It is now and again perplexing to just continually be giving away tips and tricks that many people have been selling. We really discover we’ve got the blog owner to be grateful to because of that. The type of explanations you made, the easy website menu, the relationships you will give support to promote – it is many excellent, and it’s really letting our son and our family believe that the content is exciting, and that’s seriously serious. Thank you for all!

  21. I¡¦ve been exploring for a little for any high-quality articles or blog posts in this kind of space . Exploring in Yahoo I ultimately stumbled upon this website. Studying this information So i am glad to show that I’ve an incredibly just right uncanny feeling I found out exactly what I needed. I so much indisputably will make sure to don¡¦t put out of your mind this site and give it a glance regularly.