Top Banner
Implementing Material Design Filip Vinković
23

Infinum android talks_10_implementing material design

Jul 19, 2015

Download

Software

Infinum Ltd.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Infinum android talks_10_implementing material design

Implementing Material Design Filip Vinković

Page 2: Infinum android talks_10_implementing material design

Overview

• Activity & Fragment transitions • Circular reveal • Recycler view animations • View pager animations

Page 3: Infinum android talks_10_implementing material design

Activity & Fragment transitions

• A starts B: – A exit transition – B enter transition

• B starts A: – B return transition – A reenter transition

Page 4: Infinum android talks_10_implementing material design

4

Page 5: Infinum android talks_10_implementing material design

Activity & Fragment transitions

• Content transitions • Shared element transitions • Enabled by default when using a Material

theme or by calling:

Page 6: Infinum android talks_10_implementing material design

Content transitions

• Determines how non-shared elements exit or enter the scene

• Android 5.0 offers these enter/exit transitions: – Explode – Fade – Slide

• Create custom transition by extending the Transitions class

Page 7: Infinum android talks_10_implementing material design

7

Page 8: Infinum android talks_10_implementing material design

Content transitionsActivity A (HomeActivity)

Activity B (DetailActivity)

Page 9: Infinum android talks_10_implementing material design

Content transitions

Slide text container from the bottom

Page 10: Infinum android talks_10_implementing material design

10

Slide the black background to the top

Slide text container to the bottom

Fade out the toolbar

Content transitions

Page 11: Infinum android talks_10_implementing material design
Page 12: Infinum android talks_10_implementing material design

Shared element transitions

• Determines how views that are shared between two activities transition between these activities

• Android 5.0 offers these animations: – changeBounds – changeClipBounds – changeTransform – changeImageTransform

Page 13: Infinum android talks_10_implementing material design

13

Shared element transitions

• transitionName in xml • View.setTransitionName()

Page 14: Infinum android talks_10_implementing material design

Shared element transitionsActivity A (HomeActivity)

Activity B (DetailActivity)

Page 15: Infinum android talks_10_implementing material design

Circular reveal

Page 16: Infinum android talks_10_implementing material design

Circular reveal

Page 17: Infinum android talks_10_implementing material design

17

Circular reveal

• Call after layout is measured and laid out

Page 18: Infinum android talks_10_implementing material design

Recycler view animations

Page 19: Infinum android talks_10_implementing material design

Recycler view animations

Page 20: Infinum android talks_10_implementing material design
Page 21: Infinum android talks_10_implementing material design

View pager animations

• ViewPager.PageTransformer interface • Implement transformPage(View view, float

position) method 

Page 22: Infinum android talks_10_implementing material design
Page 23: Infinum android talks_10_implementing material design

Thank you

• http://github.com/fvink/MaterialAnimationsDemo • http://www.androiddesignpatterns.com/2014/12/

activity-fragment-transitions-in-android-lollipop-part1.html

• http://frogermcs.github.io/Instagram-with-Material-Design-concept-is-getting-real-the-summary/