I am trying to create check boxes dynamically according to the data obtained from a database, up to a maximum of 6 in a single fragment, and if there are more than 6 then they're shown in the next fragment and so on... I am trying to create check boxes dynamically a