views:

24

answers:

0

I am working on a gauge set that will have multiple faces(views) of a gauge. Also the set must be able to be expanded or shrink according to use ie maybe a linkedlist. When I set the gauge/view thereof up with a hard coded xml id and put the gauge into a gallery, it kind of works. However, I need to add multiple of these gauges into the gallery and remove them whenever and it is impractical to store the ids in the xml layout. I originally used setId() for each of the gauges to be added, but when I tried findViewById() it returns null. If you have any idea what I'm doing wrong please point me in the correct direction.

:: some basic information on the activity:: The layout consists of a gallery above a vertical LinearLayout that will store two gauges/views selected from the gallery. A menu will be how the user adds/removes(selected) gauges from gallery. Thanks ~Aedon