Giter Site home page Giter Site logo

Comments (14)

monossido avatar monossido commented on September 25, 2024 1

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.

ozodrukh avatar ozodrukh commented on September 25, 2024

Check this out i made a little sample

https://gist.github.com/ozodrukh/c9343e7073907c5c5d2c

from circularreveal.

juankysoriano avatar juankysoriano commented on September 25, 2024

I have the same issue as @monossido; not working on Lollipop but working on pre-lollipop.

from circularreveal.

jpardogo avatar jpardogo commented on September 25, 2024

+1

from circularreveal.

ozodrukh avatar ozodrukh commented on September 25, 2024

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.

ayaseruri avatar ayaseruri commented on September 25, 2024

I have the same issue as @monossido; not working on Lollipop but working on pre-lollipop.

from circularreveal.

andrey-shikhov avatar andrey-shikhov commented on September 25, 2024

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.

sergejsha avatar sergejsha commented on September 25, 2024

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.

amanzan avatar amanzan commented on September 25, 2024

@beworker , could you please share your complete working example?

from circularreveal.

ozodrukh avatar ozodrukh commented on September 25, 2024

updated examples take a look

from circularreveal.

jinsen47 avatar jinsen47 commented on September 25, 2024

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.

ozodrukh avatar ozodrukh commented on September 25, 2024

u can create and start animation in onPreDraw method

from circularreveal.

jinsen47 avatar jinsen47 commented on September 25, 2024

@ozodrukh I tried your method, and I found the animation.startDelay(100) is essential, could you tell me why?

from circularreveal.

ozodrukh avatar ozodrukh commented on September 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.