samedi 27 juin 2015

Adding rows (Views) to fragment dynamically Android

I have a fragment which has a main layout view fragment_view.

I basically want to add rows to this view dynamically. So for instance, the fragment_view which is the container matches parent for width and height, but I want to add a row which is it's own separate layout xml file that is 100dp in height and matches width. How would I go about adding 5 of these inside my fragment_view layout

Aucun commentaire:

Enregistrer un commentaire