Thanks for the suggestion, Romain. That did it! On Oct 18, 9:38 am, Romain Guy <[email protected]> wrote: > Hi, > > To inflate (what you call instantiate) an XML layout file at runtime, > use a LayoutInflater. Usually the LayoutInflater.inflate()'s method is > invoked form the adapter's getView() method when the convertView > parameter is null. > > > > > > On Mon, Oct 18, 2010 at 9:20 AM, FractalBob <[email protected]> wrote: > > Hi, > > > I have a ListView that I want to populate with objects whose layout is > > defined via XML. Is there a way to instantiate a layout at runtime, > > editing stuff like the Android layout ID, etc., and then load the new > > layout into the list? TIA! > > > Bob > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en > > -- > Romain Guy > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time > to provide private support. All such questions should be posted on > public forums, where I and others can see and answer them
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

