I wanted to add in the application an animation of opening and closing the Activity in an application based on NavigationDrawer : when you click on an item, the second (new) Activity leaves to the right, closing the first one. When you press the "back" button - the second (upper) Activity leaves to the right, revealing the first (the first one is initially located below and does not move at all).

Faced the problem that I can not find relevant information. The official site is silent on this topic, the rest of the information is on the forums, enSO and, for frequent, not very hard working on new versions of Android.


Where can I find the latest information on the Activity Animation transition?

  • The official site is still not silent and even "speaks" in Russian (the "transitions" section). - pavlofff
  • @pavlofff, of course I went to this page. It talks about the transition between activities only in the context of transformation animation, and it is available only with API 21. Roughly speaking, there is too little material on the topic of transition between Activity means of ordinary animation (I’m not talking about the “best practices” and detailed examples) ). - Rostislav Dugin

1 answer 1

overridePendingTransition() must satisfy your requirements

  • Only no one tells how to use it correctly. Nothing that fully tells about the method and how to use it correctly . - Rostislav Dugin
  • ... - Serodv
  • And then no one talks about how to add animation at closing, for example. In the question I spoke about the source ah , which fully disclose this topic, and briefly show the functionality. - Rostislav Dugin
  • The theme is so simple that the link that I have indicated is more than enough covering it all. At least there are written much more than three lines in the office. documentation. PS: and about closing there too, read carefully - Serodv