shared-element-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

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

Shared Element Transition is not exiting properly

China☆狼群 提交于 2019-12-13 03:43:15
问题 I have fragment from which I'm launching activity with shared element transition that has viewpager in it, the enter transition works fine but when i scroll in view pager and finish transition the shared image comes from left side which is not desired it should reposition itself to where it was launched, here is my code: Intent myIntent = new Intent(getActivity(), EnlargeActivity.class); ActivityOptionsCompat options = ActivityOptionsCompat. makeSceneTransitionAnimation(getActivity(),

Fragment to fragment shared element transition is not working when exit

情到浓时终转凉″ 提交于 2019-12-11 10:16:34
问题 I suspect that its happening because of transition name is not set but im unable to detect that is it the reason or there is another reason or what I'm doing wrong or what is missing, here is my code: on click of recyclerview item: i didn't set transition name in on bind view if i do it also don't work holder.iv.setTransitionName(MainActivity.position + "ZoomImage"); MainActivity.position = position; ImagePagerFragment productDetailFragment = new ImagePagerFragment(); productDetailFragment

Intent not working for Parcelable Objects in onActivityReenter with SharedElement Transitions

时光总嘲笑我的痴心妄想 提交于 2019-12-11 03:16:43
问题 I am working on Shared elements Transitions in Android and have executed the animations perfectly. The problem I am facing is when passing data using Intents. So, I basically start Intent from ActivityA, which is the first screen containing a recycler view, do an ImageTransform using TransitionName and start ActivityB, which contains a details activity containing a ViewPager. Now, when I press back button, ActivityB calls finishAfterTransition in which I create an Intent and set the result as

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

IllegalArgumentException in Shared Element Transition

不打扰是莪最后的温柔 提交于 2019-12-10 14:57:05
问题 Implemented activity to activity shared element transition. It works fine but receiving crashes on very few devices that are running >=LOLLIPOP. Report: Fatal Exception: java.lang.IllegalArgumentException at android.os.Parcel.readException(Parcel.java:1550) at android.os.Parcel.readException(Parcel.java:1499) at android.app.ActivityManagerProxy.isTopOfTask(ActivityManagerNative.java:4654) at android.app.Activity.isTopOfTask(Activity.java:5557) at android.app.Activity.startActivityForResult

Shared Element Transition (Foreground/Background) Issue

左心房为你撑大大i 提交于 2019-12-10 02:48:43
问题 I would like to know whether it is possible to change the z-order of a shared element transition? Look: I have a layout with an image, that fills the whole screen. In front of the image is a textbox which shows the title of the image. If I klick on the textbox, the transition to the detail activity starts. Therefore I implemented a shared element transition, in which the fullscreen image animates to a smaller version of itself in the detail view. The picture below illustrates this behaviour.

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

五迷三道 提交于 2019-12-10 02:28:42
问题 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

Multiple Shared Elements

与世无争的帅哥 提交于 2019-12-09 09:00:40
问题 I have the following situation inside of a soccer application. We want to implement the shared elements between all these activities. In my viewholder on the first Activity for the match I have set a android:transitionName which corresponds to the same transitionName on the second Activity . <!-- item_viewholder (first activity) --> <CustomViewContainingImageViewAndTextView android:id="@+id/item_match_hometeam" android:layout_width="wrap_content" android:layout_height="wrap_content" android