Material-Animations icon indicating copy to clipboard operation
Material-Animations copied to clipboard

Questions:excluding views, and which transitions are available?

Open AndroidDeveloperLB opened this issue 10 years ago • 18 comments

I have 2 questions, if it's ok to ask:

  1. how do I exclude views from a transition (like Explode transition) ?
  2. Which built in transitions are available, except for Explode and Fade ? Are they customizable?

AndroidDeveloperLB avatar Jun 01 '15 07:06 AndroidDeveloperLB

All questions are welcomed.

  1. You can use public Transition excludeTarget (int targetId, boolean exclude) from Transition class
  2. You can take a look at Transition subclasses: https://developer.android.com/reference/android/transition/Transition.html All of them are available, but are not very customisable. You best chance is to extend one of those and modify the behaviour there.

lgvalle avatar Jun 07 '15 08:06 lgvalle

Thank you. Can you please provide a sample in the repo?

AndroidDeveloperLB avatar Jun 13 '15 21:06 AndroidDeveloperLB

Sure, let me find some spare time to implement it

lgvalle avatar Jun 16 '15 10:06 lgvalle

Thank you !

AndroidDeveloperLB avatar Jun 16 '15 10:06 AndroidDeveloperLB

Hello ,the ActivityAnimations1Binding is not found

yszx123 avatar Dec 14 '15 14:12 yszx123

sorry,I can't help you. I just have a collection.Has not been downloaded.

在 2015-12-14 22:25:39,"yszx123" [email protected] 写道:

Hello ,the ActivityAnimations1Binding is not found

— Reply to this email directly or view it on GitHub.

wangyilingithub avatar Dec 16 '15 09:12 wangyilingithub

@wangyilingithub I don't understand.

AndroidDeveloperLB avatar Dec 16 '15 10:12 AndroidDeveloperLB

@yszx123 yours is a separate issue, not related with this thread. It would probably has something to do with your gradle plugin version. Please take a look at here: http://developer.android.com/intl/es/tools/data-binding/guide.html

lgvalle avatar Dec 16 '15 11:12 lgvalle

Sorry, I closed it so it won't get corrupted with unrelated stuff.

I didn't add the example myself but I'm sure this one (by awesome Nick Butcher) is good enough to get the idea of what can be done:

https://github.com/nickbutcher/plaid/blob/master/app%2Fsrc%2Fmain%2Fjava%2Fio%2Fplaidapp%2Fui%2Ftransitions%2FMorphDialogToFab.java

There you can see how a ChangeBounds transition can be extended to do something else.

Hope this helps!

lgvalle avatar Dec 16 '15 11:12 lgvalle

@lgvalle Sadly I've failed importing it, even now: https://github.com/nickbutcher/plaid/issues/17 For some reason, they said there it's working-as-intended...

AndroidDeveloperLB avatar Dec 16 '15 11:12 AndroidDeveloperLB

Hey @lgvalle
Is it possible to have any of these transition animation in fragment transition (API level 14 to latest) except SharedElement animation transition. basically I want to use explode animation but I am not able to do so please guide me, any lead will be helpful TIA :)

1jpgodara avatar Feb 16 '16 06:02 1jpgodara

@1jpgodara I think so, but why not create a new issue , instead?

AndroidDeveloperLB avatar Feb 16 '16 07:02 AndroidDeveloperLB

@1jpgodara android.transition.Explode was added in API 21 so unfortunately you can't use that one:

http://developer.android.com/intl/es/reference/android/transition/Explode.html

But as @AndroidDeveloperLB said, please create a separate issue if you want to discuss it any further

lgvalle avatar Feb 18 '16 08:02 lgvalle

@lgvalle Well, as it's probably possible to customize the transition, maybe he can copy the code from there. Just a thought, though...

AndroidDeveloperLB avatar Feb 18 '16 08:02 AndroidDeveloperLB

ok thanks. @lgvalle @AndroidDeveloperLB

1jpgodara avatar Feb 18 '16 08:02 1jpgodara

I am hoping you can point me in the right direction, no specifics needed... How do I do the animation show in Design Spec - Navigational Transitions, Animation of parent-to-child transition where the calendar stays underneath the fragment.

Isanderthul avatar May 15 '16 15:05 Isanderthul

@Isanderthul This should be in a new post.

AndroidDeveloperLB avatar May 15 '16 17:05 AndroidDeveloperLB

thanks, opened new thread.

Isanderthul avatar May 16 '16 09:05 Isanderthul