activity-transition

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

只愿长相守 提交于 2020-01-10 10:17:19
问题 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

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

久未见 提交于 2020-01-10 10:17:05
问题 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

Weird issue when transitioning ImageView in Android 5.0

徘徊边缘 提交于 2020-01-01 04:45:15
问题 I'm experiencing a strange issue / bug regarding ImageView transitions between Activities in Android 5.0. I'm trying to transition a thumbnail image from Fragment A (in Activity A ) to the header image of Fragment B (in Activity B ). It works well most of the time, but it sometimes messes up ever so slightly. Here's a picture of what it looks like when it messes up: Naturally, it's supposed to fill the entire area. Both ImageViews are set to ScaleType.CENTER_CROP , so I can't imagine that

Shared element activity transition on android 5

折月煮酒 提交于 2019-12-31 08:30:10
问题 I wanted to setup a shared element transition when going from one Activity to another. The first Activity has a RecyclerView with items. When an item is clicked that item should animate to the new activity. So i've set a android:transitionName="item" on both the final activity views, as wel as the recycler-view item views. I'm also using this code when going to the next activity: this.startActivity(intent, ActivityOptions.makeSceneTransitionAnimation(this, itemView, "boomrang_item").toBundle(

How can i exclude ActionBar when transitions between Activities on Android 5.0

亡梦爱人 提交于 2019-12-28 15:37:31
问题 On Android 5.0 Lollipop, I have two activities A and B. Activity B has a slie enter transition from bottom with a Overlay ActionBar, but when B shows, the ActionBar also slide from bottom to top. How can i prevent the actionbar from slide transition. does system actionbar has an id that i can add to the exclude target ? thanks! 回答1: If you are using the AppCompat v7 library, it is easy: View decor = getWindow().getDecorView(); int actionBarId = R.id.action_bar_container; enterTransition

Android View Animation between activity transition

落花浮王杯 提交于 2019-12-22 13:59:06
问题 How can i keep an animation alive while the transitions between activities are occurring? Suppose that i have two activities A and B. Activity B has a "slide in" transition over the activity A. I want to keep a button rotating in my activity A while the transition of B is occurring. My button stop the rotating animation when the Activity B starts the slide over the activity A. I guess it happens because the android switch the UI Thread process to the new activity that is coming and stop what

Android lollipop shared elements transition blink / flash

不想你离开。 提交于 2019-12-18 12:49:21
问题 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

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

旧巷老猫 提交于 2019-12-17 10:28:06
问题 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

Android Scene Transition Animation when starting multiple activities

送分小仙女□ 提交于 2019-12-13 20:12:12
问题 I'd like to use ActivityOptionsCompat.makeSceneTransitionAnimation to do a scene transition between 2 UI elements but I also need to start multiple activities. This code causes issues (prevents the second activity from even starting). I can start the activities individually to pass the options to the correct activity, but that has its own issues with a flickering UI. Is there another way to accomplish this? if (targetActivity == TargetActivity.HOMEPAGE) { baseActivity.startActivity(homeIntent

Hero Transitions not working Android Lollipop

不羁的心 提交于 2019-12-13 05:21:44
问题 I tried to make animations/transitions between activities but I couldn't make it perfect and good. And I couldn't find any helping guide. Can you tell me how to create an ActivityOptions tranistion, like this: http://3.bp.blogspot.com/-dadidlU3muU/VE6og4Ra_BI/AAAAAAAAA8E/uVCWrYMetGI/s400/herotransition.gif Step by step? Thanks. 回答1: You need two shared elements: The card (the entire card) from the list view will be shared and mapped to the root view of the detail view activity. You can