android-transitions

Parent activity becomes invisible on exit transition

▼魔方 西西 提交于 2019-12-03 16:47:23
I'm using API Level 21, testing on a Nexus 6. I have two activities: master + detail, each view has a fragment. When I select an item in the master list it transitions to the detail view. I have enabled view transitions in both master and detail, like this: getWindow().requestFeature(Window.FEATURE_CONTENT_TRANSITIONS); Transition ts = new Slide(Gravity.RIGHT); ts.setDuration(2500); getWindow().setEnterTransition(ts); getWindow().setExitTransition(ts); getWindow().setAllowEnterTransitionOverlap(true); getWindow().setAllowReturnTransitionOverlap(true); The transition animations works as

Animation between Activities and shared views: glitchy/hack at the ends of animation?

旧巷老猫 提交于 2019-12-03 08:40:02
问题 So, the problem I am facing is that the animation I do between two Activities and two shared views is not looking great. The problem is that its "glitchy", when going from Activity2 back to Activity1, the TextViews being shared sort of blinks at the end of the animation, revealing the "bigger text" from Activity2 for a fraction of a second, so it "blinks". Activity 1 (RecyclerView with three items): Activity 2 (Details): I filmed the screen, while doing the animation. When going back from

How to implement a backstack when using the KitKat Transitions Framework

假如想象 提交于 2019-12-03 08:21:23
I am using the new KitKat Transitions API on Android. I have created two Scene objects using two layouts. I animate from Scene 1 to Scene 2 inside a Fragment . I want to automatically move back to the previous Scene when the user presses the back button. Is there some kind of built-in backstack mechanism when using Transitions , or do I have to roll my own? It is easy enough to call TransitionManager.go(scene1) , but I really do not want to implement an onBackPressed() listener in all my fragments that have Scene animations. I ended up rolling my own solution. Have your Activity implement this

Enter transition on a fragment with a shared element targets the shared element

▼魔方 西西 提交于 2019-12-03 04:58:03
问题 I am using the new Lollipop api to setEnterTransition on a fragment and then add a shared element transition for an image in the fragment. The desired behavior is first, the image should move to its position, after which the rest of the views in the fragment should fade in. However, the enterTransition is being applied to the shared element so it is fading in with the rest of the views. If I don't set the enterTransition, then the image moves properly but it while it is moving the other

Android Shared Element Transition: Transforming an ImageView from a circle to a rectangle and back again

女生的网名这么多〃 提交于 2019-12-03 02:54:16
问题 I'm trying to do a shared element transition between two activities. The first activity has a circle imageview and the second activity has a rectangular imageview. I just want the circle to transition from the first activity to the second activity where it becomes a square and back to the circle when I press back. I find that the transition is not so neat - in the animation below, you can see that the rectangular imageview seem to reduce in size until it matches the size of the circle. The

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

社会主义新天地 提交于 2019-12-03 01:32:41
问题 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 tutorial explaining this and, actually, I do not know how this movement is called. In other words, what I want to achieve is: Increase List Item elevation when it is clicked (as you can see in the right gif) Expand and transform list item to the next fragment/activity layout that contains detailed information about the

Animation between Activities and shared views: glitchy/hack at the ends of animation?

℡╲_俬逩灬. 提交于 2019-12-03 00:13:34
So, the problem I am facing is that the animation I do between two Activities and two shared views is not looking great. The problem is that its "glitchy", when going from Activity2 back to Activity1, the TextViews being shared sort of blinks at the end of the animation, revealing the "bigger text" from Activity2 for a fraction of a second, so it "blinks". Activity 1 (RecyclerView with three items): Activity 2 (Details): I filmed the screen, while doing the animation. When going back from Activity2 to Activit2, you can see the text blink at the very end. This video (36MB, sorry for size) shows

Android Shared Element Transition: Transforming an ImageView from a circle to a rectangle and back again

﹥>﹥吖頭↗ 提交于 2019-12-02 16:45:56
I'm trying to do a shared element transition between two activities. The first activity has a circle imageview and the second activity has a rectangular imageview. I just want the circle to transition from the first activity to the second activity where it becomes a square and back to the circle when I press back. I find that the transition is not so neat - in the animation below, you can see that the rectangular imageview seem to reduce in size until it matches the size of the circle. The square imageview appears for a split second and and then the circle appears. I want to get rid of the

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

帅比萌擦擦* 提交于 2019-12-02 14:55:17
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 tutorial explaining this and, actually, I do not know how this movement is called. In other words, what I want to achieve is: Increase List Item elevation when it is clicked (as you can see in the right gif) Expand and transform list item to the next fragment/activity layout that contains detailed information about the clicked item I have tried a lot of transitions but with no luck. Can anyone help me out to accomplish this?

Shared Element Transition + Fragment + RecyclerView + ViewPager

被刻印的时光 ゝ 提交于 2019-12-02 05:04:35
问题 I am implementing a gallery app, which has a Fragment that holds a RecyclerView with images, onClick of an image I go to ViewPager to cycle through images. For now, I am trying to implement just the entry animation like in this video. The problem is the animation just doesn't work, I am obviously missing something (just showing code which is relevant to transitions): ViewPager: public class ViewPagerFragment extends Fragment { @Override public View onCreateView(LayoutInflater inflater,