shared-element-transition

How to use shared element transition between FirstFragment (including RecyclerView) and SecondFragment

╄→尐↘猪︶ㄣ 提交于 2019-12-08 09:51:02
问题 I could implement shared element transition between two fragments WITHOUT RECYCLERVIEW!!! This is FirstFragment: public class FirstFragment extends Fragment { ImageView img_small; LinearLayout layout_ofc_cities; LinearLayout layout; public FirstFragment() { // Required empty public constructor } @Override public void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle

Shared element transition flicker when using DialogFragment and ScrollView

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-08 06:26:16
问题 Update: There's a repro at https://github.com/ulyssesp/SharedElementTransitions. This only happens when there's a DialogFragment that holds the transitioning ImageView, and it only happens sometimes. When it does happen, if the image is off the bottom of the DialogFragment but still visible, then you can see part of the image being rendered correctly. It feels like it's a race condition where the DialogFragment gets rendered after (and therefore on top of) the ImageView. I'm trying to use a

onEnterAnimationComplete() not called API 21

纵饮孤独 提交于 2019-12-07 05:08:43
问题 I am using shared element transition between activities and on devices with API 21 the method onEnterAnimationComplete() is not called. Is says here that it was introduced in api 21. Note that the method get called for Android version6 and 7. The problem occurs only for devices running on Android 5. Any ideas? 来源: https://stackoverflow.com/questions/39488410/onenteranimationcomplete-not-called-api-21

Shared element transition flicker when using DialogFragment and ScrollView

China☆狼群 提交于 2019-12-06 15:20:01
Update: There's a repro at https://github.com/ulyssesp/SharedElementTransitions . This only happens when there's a DialogFragment that holds the transitioning ImageView, and it only happens sometimes. When it does happen, if the image is off the bottom of the DialogFragment but still visible, then you can see part of the image being rendered correctly. It feels like it's a race condition where the DialogFragment gets rendered after (and therefore on top of) the ImageView. I'm trying to use a shared element transition from an ImageView in a ScrollView on a DialogFragment using Picasso and a

Shared Element transition bug from TextView to EditText

依然范特西╮ 提交于 2019-12-06 03:52:29
问题 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

Shared element transition don't have the expected behaviour

前提是你 提交于 2019-12-06 00:10:25
问题 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

Show a fragment with shared elements animation

独自空忆成欢 提交于 2019-12-05 22:41:21
In my app I have code like this: final FragmentTransaction transaction = getSupportFragmentManager().beginTransaction(); transaction.replace(R.id.fragment_container, fragment, "tag"); transaction.addSharedElement(view, "transitionName"); transaction.addToBackStack(null) .commit(); It works fine, shared elements animation works. But if I change this code like getSupportFragmentManager().beginTransaction() .add(R.id.fragment_container, fragment, "tag") .hide(fragment) .commit(); final FragmentTransaction transaction = getSupportFragmentManager().beginTransaction(); transaction.remove(oldFragment

Content Transitions on Top of Shared Elements in android

眉间皱痕 提交于 2019-12-05 15:18:33
I am trying my hands with SharedElements and Content Transitions in Android. I was trying to combine Content Transitions and Shared Elements and create a particular animation, however I have encountered a problem. After the transition on Shared Elements (ImageView) end, I am using content Transitions to animate Text View into position using Slide Transition. However when the textViews are sliding from Bottom to their position on the top of image View, the text goes beneath the ImageView (Shared Element) and later just appears on the top of the ImageView. Is there a way to do this right? I am

onEnterAnimationComplete() not called API 21

核能气质少年 提交于 2019-12-05 09:43:37
I am using shared element transition between activities and on devices with API 21 the method onEnterAnimationComplete() is not called. Is says here that it was introduced in api 21. Note that the method get called for Android version6 and 7. The problem occurs only for devices running on Android 5. Any ideas? 来源: https://stackoverflow.com/questions/39488410/onenteranimationcomplete-not-called-api-21

Shared element transition - animate only the visible part of the shared view

纵然是瞬间 提交于 2019-12-05 03:42:47
I'm working in an app that is similar to Google Calendar... There are events and when a user click one, the event grows and transforms into the detail view. The shared views (the events) are inside a ScrollView, so at some point those views may be partially visible. The problem is that when one partially visible View is selected, the full View appears above all and then the animation runs. Here is a capture of the problem: What can I do to make the Transition take only the visible part of the View to animate it? This is my transition: <changeBounds xmlns:android="http://schemas.android.com/apk