-
Notifications
You must be signed in to change notification settings - Fork 391
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
CircularReveal does not have any effect running on Android 5.1 #31
Comments
well, it works on my phone furthermore on Genymotion emulator too, can you share any piece of code |
device: mi2 |
Guys, can you share code that you are running? |
you can see that it's a old version . you can replace the new code https://github.com/yhsj0919/YHUtils/tree/master/YHUI |
I confirm that it doens't work on Android 5.0 or above (tested on 5.0 and 5.1.1). My code is the following: rootView.findViewById(R.id.consegnati_view).setVisibility(View.INVISIBLE); View myView = rootView.findViewById(R.id.choose_view); myView.setVisibility(View.VISIBLE); // get the center for the clipping circle int cx = myView.getRight(); int cy = myView.getTop(); // get the final radius for the clipping circle int finalRadius = Math.max(myView.getWidth(), myView.getHeight()); SupportAnimator animator = ViewAnimationUtils.createCircularReveal(myView, cx, cy, 0, finalRadius); animator.setInterpolator(new AccelerateDecelerateInterpolator()); animator.setDuration(CIRCLE_DURATION); animator.start(); The purpose is to hide "consegnati_view" and reveal the "choose_view" from the top right corner. They're inside the same parent "io.codetail.widget.RevealFrameLayout" in my xml. It works perfectly on Android versions below 5.0 |
marbat87, hm interesting remark, i will try to figure out today |
@ozodrukh I think the code I wrote is correct,because it runs successfully below Android L.Maybe it is a problem of compatibility.Hope you can fix it.Thanks.:-) |
Well actually I made a commit relative to this issue, and some sample, cab
|
I'll like to add that it doesn't work for me too 5.0 and 5.1 but works pre-L. I don't know how to get the fix from github thought.Could you help me |
Can you clone repository and check out new version (it is not released in jitpack) |
I can confirm that last changes are working on 5.1.1, thanks for it. |
Great 👍 |
When will the update be released? |
Can confirm that version 1.1.1 works on Android 5.1.1. @aashrey99 it is now in jitpack |
Thanks guys for help 👍 |
It is weird that running on Android 5.1,ViewAnimationUtils.createCircularReveal does not have any animation starting.
The text was updated successfully, but these errors were encountered: