FAQ Database Discussion Community


Fragment Transactions with transition - Unique transitionNames are required

android,transactions,fragment,transition,android-transitions
I want to go from a list view to the detail view and therefore, I use following OnClickListener in my list: @Override public void onClick(View view) { Bet bet = (Bet)view.getTag(); FragmentManager fm = getActivity().getSupportFragmentManager(); BetDetailFragment f = BetDetailFragment.create(bet); String tag = f.getClass().getName(); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { setSharedElementReturnTransition(TransitionInflater.from(getActivity()).inflateTransition(android.R.transition.move));...

None linear activity transition animation

android,android-activity,android-animation,android-transitions
I want to implement a none linear activity transition animation. My current anime xml file <set xmlns:android="http://schemas.android.com/apk/res/android"> <translate android:fromXDelta="100%p" android:toXDelta="0" android:duration="@android:integer/config_mediumAnimTime"/> <alpha android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="@android:integer/config_mediumAnimTime" /> </set> What i want to do is animation to start slow end in faster speed....

Fragment Transitions: shared elements

java,android,animation,android-5.0-lollipop,android-transitions
easiest way to show you what I'm trying to achive is this video: shared image in fragment transition I have one activity and two fragments (FragA and FragB). Is there a way to do this kind of transitions on Android 5 without changing activity? Cheers...

Material transition design for android

android,android-fragments,material-design,android-transitions
I have this application which consists of 1 activity and 1 fragment inside it. Let's name it Fragment A. So Fragment A consists of 3 buttons BtnA, BtnB and BtnC. When I click on BtnA in Fragment A, Fragment B will replace this Fragment A. Inside Fragment B, I will...

Shared Element Transitions Between Views (not Activities or Fragments)

android,android-5.0-lollipop,mvp,android-transitions
Let's say I'm using a view-based approach to develop an Android application like for example described in the following article: http://corner.squareup.com/2014/10/advocating-against-android-fragments.html So now I have two full screen views. One is visible and contains a grid of images. The other is hidden and is a detail view of the to-be-clicked...

Circular Reveal Android Soften Edges

android-animation,android-5.0-lollipop,android-transitions,circularreveal
I'm just experimenting with the new Lollipop transitions and was curious if the following was possible. Right now I have a circular reveal animation working beautifully but it reveals the background with a very hard line. I was wondering if it was possible to soften the line or to fade...

How to add an exit / return TransitionAdapter

android,android-animation,android-transitions
I'm creating a scene transition using to move from Activity A to Activity B: ActivityOptions.makeSceneTransitionAnimation In Activity B I add a TransitionAdapter to perform certain tasks when the scene transition is completed: getWindow().getEnterTransition().addListener(...) Is there a way to add a TransitionAdapter to the exit / return in Activity B so...

How to used Material Design Transition when fragment changed in Android?

android,material-design,android-transitions
I like new Transitions introduced with Android material design like that : But, I want used it when I replaced fragment after selected an item in my Drawer : fragmentManager.beginTransaction().replace(R.id.container, fragment).commit(); Is that possible? Used the same logic with EnterTransition / ExitTransition and Explode transition animation....