Jagmit
Jagmit

Reputation: 243

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.

Upvotes: 8

Views: 4413

Answers (1)

mengxn
mengxn

Reputation: 339

you can try this

<android.support.v7.widget.RecyclerView
    ...
    android:clipChildren="false"
    android:clipToPadding="false"/>

Upvotes: 7

Related Questions