activity-transition

Activity transition when data changes

放肆的年华 提交于 2019-12-10 23:32:38
问题 I got images adapter where each item is user image, when clicked it opens a new activity with selected user image, so I mark the image as shared element and using activity transitions. Part of the actions that I perform on the second activity effects all of the users, so the adapter calls notifyDataSetChanged and reset the position to the top of the list. When this happens it mess up the return animation, when I close the second activity and return to the list the data in it been changed so

Lollipop transitions not working when resuming activity

别等时光非礼了梦想. 提交于 2019-12-10 18:49:31
问题 I have been trying to implement the new Lollipop activity and shared elements transitions during a few days following the steps from Alex Lockwood awesome blog posts. But now I'm facing a bit of a problem. My application uses a DrawerLayout for navigation, but I can also launch some of the activities when clicking other views and buttons. I have set correctly all the Enter, Reenter, Return and Exit transitions for all the activities as well as calling: startActivity(intent, ActivityOptions

Having issues using Android 5.0 Activity transitions onto an activity with a ViewPager

て烟熏妆下的殇ゞ 提交于 2019-12-09 07:54:57
问题 So we're trying to create an across activity image transition from an image in a ListView, to an image in a ViewPager gallery.In doing this transition we're seeing the animation happen before the ViewPager finishes loading/drawing. This causes the image on the ViewPager to flash making the animation look bad. As a test we put an image overtop to fake the look of the ViewPager being loaded. We then transition from the image in the ListView to this 'dummy' ImageView, and then hide it after the

Android View Animation between activity transition

ぐ巨炮叔叔 提交于 2019-12-06 06:12:21
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 the previous activity was doing, but in my case the user still can see the activity A being covered by

Weird issue when transitioning ImageView in Android 5.0

匆匆过客 提交于 2019-12-03 12:20:26
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 being the issue. What's curious is that the issue fixes itself immediately upon scrolling in Activity B

Having issues using Android 5.0 Activity transitions onto an activity with a ViewPager

倖福魔咒の 提交于 2019-12-03 10:04:24
So we're trying to create an across activity image transition from an image in a ListView, to an image in a ViewPager gallery.In doing this transition we're seeing the animation happen before the ViewPager finishes loading/drawing. This causes the image on the ViewPager to flash making the animation look bad. As a test we put an image overtop to fake the look of the ViewPager being loaded. We then transition from the image in the ListView to this 'dummy' ImageView, and then hide it after the transition is complete. This helped but still didn't create a smooth experience since things would

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

FEATURE_ACTIVITY_TRANSITIONS vs. FEATURE_CONTENT_TRANSITIONS

二次信任 提交于 2019-12-03 00:18:51
问题 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

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

Shared element activity transition on android 5

痴心易碎 提交于 2019-12-02 15:31:18
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()); When clicking an item, it transitions properly and the new view is shown. It is really nice.