Once I write a ListView
demo, the ListView
's items have some different types.
item1:
Text
Pic Pic Pic
Pic Pic Pic
item2:
Text
Pic Pic
Pic Pic
item3:
Text
Pic Pic Pic
Pic Pic Pic
Pic Pic Pic
...
So I override
the getViewTypeCount()
and getItemViewType()
.It work well.
But Now I change to use RecyclerView
. Is there a better solution?Please help me.
use
This is sample, you can create an item view with a textview and nonscrolling gridview
Your RecyclerView item view