activity-transition

FEATURE_ACTIVITY_TRANSITIONS vs. FEATURE_CONTENT_TRANSITIONS

杀马特。学长 韩版系。学妹 提交于 2019-12-02 14:01:10
I am having some trouble understanding the difference between these two Window flags and am not 100% certain when each needs to be used and why. The docs for Window.FEATURE_ACTIVITY_TRANSITIONS say: Enables Activities to run Activity Transitions either through sending or receiving ActivityOptions bundle created with makeSceneTransitionAnimation(Activity, Pair[]) or makeSceneTransitionAnimation(Activity, View, String) . And the docs for Window.FEATURE_CONTENT_TRANSITIONS say: Flag for requesting that window content changes should be animated using a TransitionManager . The TransitionManager is

Delay shared element transition to complete statelist animation

亡梦爱人 提交于 2019-12-02 08:38:58
问题 I've been trying out shared element transition on Lollipop. i have a recyclerview which loads some cards and one click the card expands to its details in the next activity. I have set a ripple effect and a StateListAnimator on the card. But those are not visible cause the transition starts before these effects are completed. Is there any way to delay the transition so that it can wait for the statelist animator and ripple to complete? Here is the code I use ActivityOptions options = null; if

Delay shared element transition to complete statelist animation

ⅰ亾dé卋堺 提交于 2019-12-02 04:35:17
I've been trying out shared element transition on Lollipop. i have a recyclerview which loads some cards and one click the card expands to its details in the next activity. I have set a ripple effect and a StateListAnimator on the card. But those are not visible cause the transition starts before these effects are completed. Is there any way to delay the transition so that it can wait for the statelist animator and ripple to complete? Here is the code I use ActivityOptions options = null; if (Utilities.isLollipop()) { options = ActivityOptions.makeSceneTransitionAnimation(this, Pair.create

Glitch when animating nested views in a shared element Activity transition?

可紊 提交于 2019-11-30 09:12:23
I've been messing around with the new APIs in Android 5.0 and have been trying to figure out whether or not it is possible to animate both a ViewGroup and one of its children separately as shared elements during an Activity transition . The screenshots below gives a simplified example of what I am trying to achieve: In the first activity, the dark gray box is a ViewGroup centered in the screen and the red box is its child View (the layout XML code I am using can be found here ). When the user clicks on the dark gray box, the dark gray box should gradually scale up to fill the second activity's

Android lollipop shared elements transition blink / flash

∥☆過路亽.° 提交于 2019-11-30 08:22:46
I see strange thing in my shared element transition on Lollipop. Shared elements are flickering just before they are starting to animate (please see video https://www.youtube.com/watch?v=DCoyyC_S-9A ) I've no idea why it is happening. However when I add <item name="android:windowSharedElementsUseOverlay">false</item> to my theme I don't see flickering but the transition is not looking good (they look like only half of it is animating second half of animation 'hidden'). Other transition settings: <item name="android:windowActivityTransitions">true</item> <item name="android

Understanding exit/reenter shared element transitions

可紊 提交于 2019-11-30 02:05:00
I'm doing some rudimentary exploration of Shared Element Transitions in Android L. The simple example I've setup has an image view translating from the top of the screen to the bottom of the screen during activity transitions and I've extended the transition duration so I can see things working. I've hit two problems so far trying to understand how Shared Element Transitions works. 1)When using only Enter/Return transitions (Exit/Reenter set to null). The enter transition is fine, but when the back button is pressed the view animates for a time, stops, then reappear in the final position.

Hiccups in activity transitions with shared elements

倖福魔咒の 提交于 2019-11-29 02:22:14
I want to use the new Activity Transitions of Android Lollipop. But currently I am seeing very weird hickups during the animations. I hacked together the smallest sample I could think of. This is what I did in a very short version: Enabled window content transitions in my styles.xml Referenced a very simple slide.xml as exit transition in my style Provided a android:transitionName for a shared element in both layouts Called ActivityOptions.makeSceneTransitionAnimation() with that name and the view I want to share Passed the resulting bundle to startActivity() This is the behavior I see (try

Understanding exit/reenter shared element transitions

我的未来我决定 提交于 2019-11-28 22:58:48
问题 I'm doing some rudimentary exploration of Shared Element Transitions in Android L. The simple example I've setup has an image view translating from the top of the screen to the bottom of the screen during activity transitions and I've extended the transition duration so I can see things working. I've hit two problems so far trying to understand how Shared Element Transitions works. 1)When using only Enter/Return transitions (Exit/Reenter set to null). The enter transition is fine, but when

Animate ImageView between two activities using shared element transitions with ChangeImageTransform

妖精的绣舞 提交于 2019-11-28 18:23:48
I am trying to animate one ImageView to another position between two activities in Android API level 21. Since "MoveImage" in Android L Preview has been removed, I use " ChangeImageTransform " instead, but the sample code in documents doesn't work out (the two images animated separately). <transitionSet xmlns:android="http://schemas.android.com/apk/res/android"> <changeImageTransform> <targets> <target android:targetId="@id/ivA" /> <target android:targetId="@id/ivB" /> </targets> </changeImageTransform> </transitionSet> Is there any working example? Thanks! To make a screen transition

android 5 activity transition on lower api [duplicate]

吃可爱长大的小学妹 提交于 2019-11-28 18:13:53
This question already has an answer here: Are Activity/Fragment Transitions compatible with pre-Lollipop devices? 4 answers Every time i search i came across this " android 5(L) activity transition only available on API >= 21 . that's fine but i can see some app like QuickPic and google inbox that use similar transition and also working on lower api, so how this app can do such a thing? what i have done? 1) a lot of search:) 2) playing with ActivityOptionsCompat that only apply to api >= 21, like this: ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(activity,