Comments (8)
Ok I too had the reverse animator problem. Actually I was setting the view INVISIBLE after anim.start();
which does not wait for animation to end.
Solution:
anim.addListener(new Animator.AnimatorListener() {
@Override
public void onAnimationStart(Animator animation) {
}
@Override
public void onAnimationEnd(Animator animation) {
mConfigCard.setVisibility(View.INVISIBLE);
}
@Override
public void onAnimationCancel(Animator animation) {
}
@Override
public void onAnimationRepeat(Animator animation) {
}
});
from circularreveal.
Yep,
View myView = findView(R.id.awesome_card);
// get the center for the clipping circle
int cx = (myView.getLeft() + myView.getRight()) / 2;
int cy = (myView.getTop() + myView.getBottom()) / 2;
// get the final radius for the clipping circle
int finalRadius = Math.max(myView.getWidth(), myView.getHeight());
// i just swapped from radius, to radius arguments
SupportAnimator animator =
ViewAnimationUtils.createCircularReveal(myView, cx, cy, finalRadius, 0);
animator.setInterpolator(new AccelerateDecelerateInterpolator());
animator.setDuration(1500);
animator.start();
from circularreveal.
Thanks a lot for it.
from circularreveal.
It does not work for me.
from circularreveal.
checkout a latest version, i added reverse animation
from circularreveal.
I am just working with the solution that you gave me and its working just fine.
from circularreveal.
If you're talking about the reverse function, you're supposed to use animator.reverse().start().
reverse() only returns the SupportAnimator and not start the animation itself.
from circularreveal.
It's not working for me either. I am using the latest version and I have tried the animator.reverse.start() too.
from circularreveal.
Related Issues (20)
- java.lang.NoSuchMethodError: android.view.View.invalidateOutline
- is there any way to close reveal animation with drag like snap chat and wats app status
- createCircularReveal makes square reveal on API16 HOT 4
- First time Animation not showup in cirlce HOT 1
- Change shape of Reveal
- Feedback CircularReveal BUG
- How Sliding scale Circle?
- spelling mistakes in README file
- Problem with the depricated ActionBarActivity...
- Failed to resolve: com.github.ozodrukh:CircularReveal:2.0.1
- 0.3.5、0.4.0 无法解析
- Dependency conflicts HOT 1
- Interpolators don't appear to have an effect HOT 1
- java.lang.IllegalArgumentException: Parent must be instance of RevealViewGroup
- where is animator.reverse()? HOT 1
- unable to solve SupportAnimator HOT 1
- 1.0.5 release seems non-existing in jitpack
- targetSDKVersion should be updated
- Crazy Noizy Logs that
- Could not resolve com.github.ozodrukh:CircularReveal:2.1.0. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from circularreveal.