Android Question Is it possible to have a repeater of checkboxes loaded from database?

Steve Miller

Active Member
Licensed User
Longtime User
I have a table that has 28 rows in it. Each row has a key, description and a boolean. The boolean determins if I need to show a textbox for other information. I need to dynamically load the rows 4 across and repeat for as much data there is. Any row that has the bit set to True, I would display at the end so I can fit a textbox next to it for the additional information.

So, if I have the following data:

1, Desc1, False
2, Desc2, False
3, Desc3, True
4, Desc4, False
5, Desc5, False
6, Desc6, False
7, Desc7, False
8, Desc8, True
etc...

I need to display it as follows:

[]Desc1 []Desc2 []Desc4 []Desc5
[]Desc6 []Desc7
[]Desc3 [text box goes here...]
[]Desc8 [text box goes here...]
etc...

Is this possible? If so, can someone provide some code to do it, as I'm pretty new to this and have no clue how to accomplish this.

Thanks for assistance!
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…