activity-transition

How to postpone a Fragment's enter transition in Android Lollipop?

给你一囗甜甜゛ 提交于 2019-11-28 06:55:41
In Android Lollipop, the Activity#postponeEnterTransition() and Activity#startPostponedEnterTransition() methods give the Activity the ability to delay starting the entering and exiting shared element transitions until all data is loaded. These work great for Activity transitions. Is there a way to achieve the same effect when using Fragment transitions? There's no direct equivalent in Fragment Transitions because Fragments use FragmentTransaction and we can't really postpone something that is supposed to happen in a transaction. To get the equivalent, you can add a Fragment and hide it in a

How can I scale textviews using shared element transitions?

ぐ巨炮叔叔 提交于 2019-11-28 04:10:47
I am able to get TextViews to transition perfectly between two activities using ActivityOptions.makeSceneTransitionAnimation . However I want to make the text scale up as it transitions. I can see the material design example scaling up the text "Alphonso Engelking" in the contact card transition. I've tried setting the scale attributes on the destination TextView and using the changeTransform shared element transitions, but it doesn't scale and the text ends up being truncated as it transitions. How can I scale TextViews using shared element transition? Edit: As pointed out by Kiryl Tkach in

Hiccups in activity transitions with shared elements

好久不见. 提交于 2019-11-27 16:39:03
问题 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

Are Activity/Fragment Transitions compatible with pre-Lollipop devices?

谁都会走 提交于 2019-11-27 11:40:59
I'm trying to make an Activity Transition using Shared Elements on a pre-Lollipop device (4.x). Is it possible? So far, I'm trying this: public class RewardDetail extends ActionBarActivity { @Override public void onCreate(final Bundle savedInstanceState) { ... ViewCompat.setTransitionName(imageView, TRANSITION_NAME); } ... public static void launch(ActionBarActivity activity, View transitionView, WelcomeReward detailData) { ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(activity, transitionView, TRANSITION_NAME); Intent intent = new Intent(activity,

Animate ImageView between two activities using shared element transitions with ChangeImageTransform

半世苍凉 提交于 2019-11-27 11:18:14
问题 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> <

android 5 activity transition on lower api [duplicate]

醉酒当歌 提交于 2019-11-27 11:08:06
问题 This question already has answers here : Are Activity/Fragment Transitions compatible with pre-Lollipop devices? (4 answers) Closed 4 years ago . 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

How to postpone a Fragment's enter transition in Android Lollipop?

安稳与你 提交于 2019-11-27 01:41:30
问题 In Android Lollipop, the Activity#postponeEnterTransition() and Activity#startPostponedEnterTransition() methods give the Activity the ability to delay starting the entering and exiting shared element transitions until all data is loaded. These work great for Activity transitions. Is there a way to achieve the same effect when using Fragment transitions? 回答1: There's no direct equivalent in Fragment Transitions because Fragments use FragmentTransaction and we can't really postpone something

How can I scale textviews using shared element transitions?

只谈情不闲聊 提交于 2019-11-27 00:14:43
问题 I am able to get TextViews to transition perfectly between two activities using ActivityOptions.makeSceneTransitionAnimation . However I want to make the text scale up as it transitions. I can see the material design example scaling up the text "Alphonso Engelking" in the contact card transition. I've tried setting the scale attributes on the destination TextView and using the changeTransform shared element transitions, but it doesn't scale and the text ends up being truncated as it

ViewPager Fragments – Shared Element Transitions

不想你离开。 提交于 2019-11-27 00:07:15
问题 An app I'm developing displays a grid of images. When you tap an image, it goes into the details view. The details view contains a ViewPager that allows you swipe between every image in the grid. This is done by passing a lists of paths (containing every image in the grid), along with an offset of the image that was tapped so the ViewPager can be set to show that page initially. What's the best way to have a shared element transition inside the Fragment of the current offset page in the

How do I prevent the status bar and navigation bar from animating during an activity scene animation transition?

断了今生、忘了曾经 提交于 2019-11-26 13:57:00
Firstly, my status bar background is set to dark brown, and my navigation bar background is default black. I'm using the Material light theme. I'm starting a new activity using ActivityOptions.makeSceneTransitionAnimation with default transitions, and I notice that both the status and navigation bars briefly fade to white and then back to the correct colors. According to the documentation : To get the full effect of a transition, you must enable window content transitions on both the calling and called activities. Otherwise, the calling activity will start the exit transition, but then you'll