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

Can I edit transition animation..? #58

Closed
BROUDING opened this issue Feb 15, 2017 · 6 comments
Closed

Can I edit transition animation..? #58

BROUDING opened this issue Feb 15, 2017 · 6 comments

Comments

@BROUDING
Copy link

I know I should report some error kinda thing, but you're work is too awesome to make some issues for me.

I really appreciate for your work.

My question is, can I change animation settings like alpha value..?
I'm using very basic one "automatic-" and I don't want that alpha setting...

Thanks in advance ::D

@andkulikov
Copy link
Owner

Hey. You don't need alpha animation at all? Could you show the code which you are using?

@BROUDING
Copy link
Author

Thanks for quick reply !

In your Android app "Transitions Everywhere", the first one "Simple animations with AutoTransition" !
(I really like your sample by the way.)

TransitionManager.beginDelayedTransition(transitionsContainer); HIDDEN_VIEW.setVisibility(View.VISIBLE);
<<< This is all I wrote! and it works like a charm!
(Of course I did some work on LinearLayout and weight settings)

I'm trying to do this, so 'HIDDEN_VIEW' will push up the view above with awesome animation.
Since I need to fix the LayoutParam of the view above, I just decided to use this library.
And it's too slow to listen until finish moving of the view above.

So I just want to exterminate 'alpha' animation... How can I customize?

@BROUDING
Copy link
Author

It seems like the 'alpha animation' is waiting for 'translation animation' right..?
So I want to save that alpha animation time...

And also I'd really like to know how to set duration...

Thank you !

@andkulikov
Copy link
Owner

You can specify transition like this
TransitionManager.beginDelayedTransition(transitionsContainer, transition);
When you not provide it like in your example its create new AutoTransition() internally

where AutoTransiton is like
new TransitionSet()
.setOrdering(ORDERING_SEQUENTIAL)
.addTransition(new Fade(Fade.OUT))
.addTransition(new ChangeBounds())
.addTransition(new Fade(Fade.IN))

If you want it to perform together just use instead
new TransitionSet()
.addTransition(new Fade())
.addTransition(new ChangeBounds())

to change duration for fade (alpha animation)
new TransitionSet()
.addTransition(new Fade().setDuration(150))
.addTransition(new ChangeBounds())

Here you go

@BROUDING
Copy link
Author

I appreciate your reply!
I bet it will help.

Is there any docs you wrote?
Or should I just look into the code?

Have a good day!

@andkulikov
Copy link
Owner

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

2 participants