Home Activity transition coming to my app from all the other apps
Reply: 0

Activity transition coming to my app from all the other apps

user1026 Published in April 26, 2018, 5:26 pm

I am making a launcher app. I am trying to replicate the Pixel Launcher behaviour, where when you are in an app and the home button is pressed - the app's activity slides down, while the launcher is already there: gif-example

Well, I figured that

overridePendingTransition(R.anim.no_change, R.anim.slide_out_down);

in onResume() of my launcher activity would do the trick, but the thing is that the first parameter (R.anim.no_change) affects both the launcher activity and the activity of the app that is being closed. Thus, no animation is present for either of the activities: gif-example

For example,

overridePendingTransition(R.anim.fade_in, R.anim.slide_out_down);

gives me this: gif-example. Both the activities are being faded, although the fade animation was supposed to be applied only to the launcher activity.

Any thoughts on how I can replicate the google's launcher behaviour?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.304296 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO