最佳答案
I'm trying to work with the new RecyclerView
, but I could not find an example of a RecyclerView
with different types of rows/cardviews getting inflated.
With ListView
I override the getViewTypeCount
and getItemViewType
, for handling different types of rows.
Am I supposed to do it like the "old" way or should I do something with LayoutManager
? I was wondering if someone could point me to the right direction. Because I can only find examples with one type.
I want to have a list of slightly different cards. Or should I just use a scrollView
with cardViews
inside of it...make it without the adapter and recyclerView
?