views:

48

answers:

1

I need a gallery to be able to hold up to thirty custom views. These views need to added or removed whenever, they also need to be able to be display in a display bow beneath the gallery. How do I do this? I looked at the doc file for arrayadapter but it requires me to use a reference Id for each view I add, but each view is all java coded. Should I just use setId upon creation of the view and just throw that id into the array adapter, or is there a way to create one without using resource id's?

Thanks Aedon

A: 

How do I do this?

Use my SackOfViewsAdapter, which does exactly what you are seeking, at least as far as I can tell from your question.

CommonsWare
It looks great, thank you. My only issue now is how would I write the setView method? That is the weirdest object setter ever. The only way to set it is to call a getView which in turn calls a set view? that is a little weird.
AedonEtLIRA
@user480691: I have no idea what you are talking about -- sorry.
CommonsWare