androidx.cardview:cardview
Official Description: Android Support CardView v7
CommonsWare’s Notes
This artifact contains CardView
, a simple container that wraps some other
container (e.g., ConstraintLayout
) and gives it a “card” effect: a rounded-rectangle
border with a drop shadow. The drop shadow is “real” (system-supplied) on
Android 5.0 and higher, and is faked using a background drawable on older devices.
Note that the CardView
class existed for many years in the Android Support
Library. As a result, much of the written material on CardView
refers to
android.support.v7.widget.CardView
, not androidx.cardview.widget.CardView
.
However, functionally, both CardView
implementations work the same.
Documentation
- Release Notes
- CardView JavaDocs
- Material Card: Alternative implementation in Material Components for Android, offering greater customizability
Knowledge
- Android: CardView (2017-03-14)
- Getting Started With RecyclerView and CardView on Android (2015-03-23)
- Android CardView Example (2015-03-19)
Samples
Versions
- Latest Stable: 1.0.0
- Latest Release Candidate: 1.0.0-rc02
- Latest Beta: 1.0.0-beta01
- Latest Alpha: 1.0.0-alpha3