Comments (14)
Ok, I tried to align my code to the sample ,without success.
But I've noticed that on an emulator with android 4.2 it works!
Only on my phone, with android 5.1 (cm 12.1) it doesn't work at all.
from circularreveal.
Check this out i made a little sample
https://gist.github.com/ozodrukh/c9343e7073907c5c5d2c
from circularreveal.
I have the same issue as @monossido; not working on Lollipop but working on pre-lollipop.
from circularreveal.
+1
from circularreveal.
Hm interesting but it works smooth on my Motorola XT1032(5.1) and emulators(5.0, 5.1)
Could you build and install sample.apk and provide information how it works?
from circularreveal.
I have the same issue as @monossido; not working on Lollipop but working on pre-lollipop.
from circularreveal.
I can confirm, this is not working on lollipop fragments, at least on nested ones. Tested on android emulator 5.0.1, 5.1.1 and samsung galaxy s6 edge
Workaround:
if(LOLLIPOP)
{
// this is native apis, not library ones
Animator circularReveal = android.view.ViewAnimationUtils.createCircularReveal(targetView, cx, cy, 0, r);
circularReveal.start();
}
else
{
// use backported api
}
from circularreveal.
I use this code right after showing a fragment on Android 6.0 and it works like a charm
mContainer.getViewTreeObserver().addOnGlobalLayoutListener(
new ViewTreeObserver.OnGlobalLayoutListener() {
@Override public void onGlobalLayout() {
int size = Math.max(mContainer.getWidth(), mContainer.getHeight());
if (size == 0) return;
// create and start animation
...
// it is important to remove listener
mContainer.getViewTreeObserver().removeGlobalOnLayoutListener(this);
}
});
from circularreveal.
@beworker , could you please share your complete working example?
from circularreveal.
updated examples take a look
from circularreveal.
Hi, I 'm trying to make a reveal animation when a fragment is opened.
I implemented in onHiddenChanged
function( create animator in onPreDraw
, and start in onHiddenChanged
), but nothing happened.
Do u have any idea?
Thanks
from circularreveal.
u can create and start animation in onPreDraw method
from circularreveal.
@ozodrukh I tried your method, and I found the animation.startDelay(100)
is essential, could you tell me why?
from circularreveal.
it was just example of using setStartDelay
method 😅 and if u haven't noticed by delaying animation start it first white screen flash and after animation starts, i suggest u starting animation in onPreDraw()
method
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.