Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Recyclerview set clipChildren

How can I allow the children of my RecyclerView to draw on each other like children of a ViewGroup normally do with clipChildren="false"?

I use CardViews in my RecyclerView and I want the shadow of one CardView to cover the CardView below.

like image 604
Jagmit Avatar asked Jan 12 '17 15:01

Jagmit


1 Answers

you can try this

<android.support.v7.widget.RecyclerView
    ...
    android:clipChildren="false"
    android:clipToPadding="false"/>
like image 92
mengxn Avatar answered Sep 28 '22 20:09

mengxn