android - RecyclerView with CardView rows where each row has 1 or more TextViews stacked vertically all loaded from same cursor -
i have recyclerview
in application each row in cardview
data loaded database using loader/cursor
. basic recyclerview/cardview
stuff. data db structured this: | _id | main_id | sub_id | title | |----- |--------- |-------- |-------------- | | 1 | 1 | 1 | main 1 sub 1 | | 2 | 1 | 2 | main 1 sub 2 | | 3 | 2 | 1 | main 2 sub 1 | | 4 | 3 | 1 | main 3 sub 1 | | 5 | 3 | 2 | main 3 sub 2 | | 6 | 3 | 3 | main 3 sub 3 |
i have been able display distint
main_id
's , title
each record in recyclerview/cardview
. below
the question proper:
i want display this:
is possible same cursor?
have custom recyclerview adapter view holder. please how go it.thanks
Comments
Post a Comment