[android-developers] Defining a UI subtree in xml, but instantiating it more than once. Possible?

2010-02-01 Thread Ryan Moulton
Hi everyone. Just getting started with developing for Android, so apologies if there's an obvious answer. I'm working on an application in which it's necessary to programmatically change the entire structure of the UI. What I would like to be able to do is specify a subtree of the UI in xml, and

Re: [android-developers] Defining a UI subtree in xml, but instantiating it more than once. Possible?

2010-02-01 Thread Romain Guy
Inflating a views tree always creates new instances of views, there's no singleton. Without seeing your code, I cannot tell you what you are doing wrong unfortunately. On Mon, Feb 1, 2010 at 11:04 PM, Ryan Moulton ryanmoul...@gmail.com wrote: Hi everyone. Just getting started with developing for