I am wondering how we can create CardView Lists (dynamically generated cardview items)
Use ListView
or RecyclerView
. Use CardView
as the root layout for your row layouts, wrapping around whatever the "real" stuff is in the row. And you're done.
RecyclerView
will be the more common choice, simply because it was released at the same time as CardView
. Many of my RecyclerView
samples use CardView
, such as this one and this one.
I'm surprised I can't find any info on how to create CardView lists on the developer.android.com site
That's because there is nothing much different about creating a list containing CardView
widgets than there is about creating a list containing any other sort of widget. CardView
is just a subclass of FrameLayout
with a nice drop shadow effect. It is not rocket science, nor is it brain surgery.