Android - How to create a transition from an item in listview to a whole activity?

后端 未结 4 1304
梦如初夏
梦如初夏 2021-01-30 09:35

What I want is that when the user clicks a list item in a ListView, it converts to a whole activity (as you can see in the following example), but I was not able to find a tutor

4条回答
  •  独厮守ぢ
    2021-01-30 09:51

    Try this spectacular webpage @ Getting Started with Activity & Fragment Transitions (part 1). Here they talked about Activity and Fragment Transitions. I have not tried it. My view is that Fragment Transitions is better and less computer intensive, so it's a good start. And you may not need to change Toolbars, you can show/hide them.

    Another good SO link is @ Animate the transition between fragments, look at the best answer. In that post, they talked about objectAnimator.

    Another opinion is about the sample animation you posted, it does not show a smooth animation from one art to another. It is less impressive when the animation is not smooth.

    Good luck, have fun, keep us all posted.

提交回复
热议问题