Jaouan / Revealator

An helper to circle reveal/unreveal a view easily, with translations and childs animations.
Apache License 2.0
448 stars 53 forks source link

Translation not working #7

Closed PHELAT closed 7 years ago

PHELAT commented 7 years ago

I'm having a problem with translation, i'm revealing from a FAB but in the first reveal the translation animation doesn't work. but in next reveals, translation works as expected.

my reveal code :

Revealator.reveal(someFramelayout)
                .from(someFAB)
                .withCurvedTranslation()
                .withEndAction(new Runnable() {
                    @Override
                    public void run() {
                        isRevealed = true;
                        rootView.imageDetailRevealRoot.setClickable(true);
                    }
                })
                .start();

also the FAB doesn't gone on animation end, i'm doing this with a handler.

PHELAT commented 7 years ago

problem was because of visibility .

for those who have this problem too :

just don't use visibility=gone, use invisible instead.