shared-element-transition

Shared Element transition bug from TextView to EditText

ぃ、小莉子 提交于 2019-12-04 07:40:40
I am trying to do an Android Shared Transtion between a TextView and a EditText´ but when showing the resulting Activity the text in the EditView have been shifted up. See attached pictures. Also, clicking on the EditView` after the transition will restore the text to the correct position. First clicking any row in RecylcerView: The cell view, the date TextEdit and the Name TextEdit are shared to the next activity. The cell background is transitioned into the toolbar. Start activity cell layout: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk

Shared element transition don't have the expected behaviour

我是研究僧i 提交于 2019-12-04 06:20:56
I implemented the shared element transition between from an image in a RecyclerView to an image in a new Fragment. The RecyclerView is hosted in a fragment hosted by an Activity and the target fragment is hosted inside another Activity. When I click on my image, the transition is happening like expected and I get to my fragment. But when I click the back button, the transition is trying to put my image at the first position of my RecyclerView while it's currently displaying the image which is not necessarily the first one. From this situation, I thought since it's a list of image in which I

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

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

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

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

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

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.

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