Home Animating item in recyclerview outside of parent
Reply: 0

Animating item in recyclerview outside of parent

Ayman Alkurdi
1#
Ayman Alkurdi Published in 2018-02-14 09:11:54Z

I'm trying to animate a view in recyclerview outside of its parent,

I have added animation on image click which is in recyclerview.

Please note that the animation is working but the animation is not visible outside the single item layout of the recycler view.

I tried to make all the parent enabled = false

   public static void setAllParentsClip(View v, boolean enabled) {
    while (v.getParent() != null && v.getParent() instanceof ViewGroup) {

        ViewGroup viewGroup = (ViewGroup) v.getParent();
        viewGroup.setClipChildren(enabled);
        viewGroup.setClipToPadding(enabled);
        viewGroup.setClipToOutline(enabled);
        v = viewGroup;
    }
}

But not give what I'm looking for

I also tried to add

   android:clipChildren="false"
android:clipToPadding="false"

for all the Parent but the same result

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.309472 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO