In case someone else come across this question, Other answers are right but then you should place your CardView
within FrameLayout and you should make ListView
's divider transparent. CardView
's elevation and margin attribute won't work unless you use it inside FrameLayout
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…