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
enter image description here

the question proper:

i want display this:
enter image description here

is possible same cursor?
have custom recyclerview adapter view holder. please how go it.thanks


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -