Sunday, December 13, 2009

[android-developers] Re: Creating views dynamically

On Dec 13, 4:46 pm, Neilz <neilhorn...@googlemail.com> wrote:
> > > In my main.xml layout file, I define a FrameLayout. Then in another
> > > layout file (say overlay.xml), I define another layout.
>
> > > At runtime (onCreate) I want to create a new View object, set it's
> > > layout with overlay.xml, and add it to the frame dynamically. I need
> > > access to the elements of the overlay, to change text etc.

by the way, using LayoutInflater, just use inflate() method, you don't
have to create any new indirect Views

pskink

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate