Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions:excluding views, and which transitions are available? #5

Open
AndroidDeveloperLB opened this issue Jun 1, 2015 · 18 comments
Assignees

Comments

@AndroidDeveloperLB
Copy link

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?
@lgvalle
Copy link
Owner

lgvalle commented Jun 7, 2015

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.

@AndroidDeveloperLB
Copy link
Author

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

@lgvalle
Copy link
Owner

lgvalle commented Jun 16, 2015

Sure, let me find some spare time to implement it

@AndroidDeveloperLB
Copy link
Author

Thank you !

@lgvalle lgvalle self-assigned this Jul 22, 2015
@yszx123
Copy link

yszx123 commented Dec 14, 2015

Hello ,the ActivityAnimations1Binding is not found

@wangyilingithub
Copy link

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

在 2015-12-14 22:25:39,"yszx123" notifications@github.com 写道:

Hello ,the ActivityAnimations1Binding is not found


Reply to this email directly or view it on GitHub.

@AndroidDeveloperLB
Copy link
Author

@wangyilingithub I don't understand.

@lgvalle
Copy link
Owner

lgvalle commented Dec 16, 2015

@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 lgvalle closed this as completed Dec 16, 2015
@lgvalle lgvalle reopened this Dec 16, 2015
@lgvalle
Copy link
Owner

lgvalle commented Dec 16, 2015

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 lgvalle closed this as completed Dec 16, 2015
@lgvalle lgvalle reopened this Dec 16, 2015
@AndroidDeveloperLB
Copy link
Author

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

@1jpgodara
Copy link

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 :)

@AndroidDeveloperLB
Copy link
Author

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

@lgvalle
Copy link
Owner

lgvalle commented Feb 18, 2016

@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

@AndroidDeveloperLB
Copy link
Author

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

@1jpgodara
Copy link

ok thanks. @lgvalle
@AndroidDeveloperLB

@Isanderthul
Copy link

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.

@AndroidDeveloperLB
Copy link
Author

@Isanderthul This should be in a new post.

@Isanderthul
Copy link

thanks, opened new thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants