[android-developers] Can we create UI component in a seperate XML file and load it
So I have created this activity, and setContentView() with mail.xml
layout file.
Now I want to add some textView dynamically into this screen. I
already have these text view defined in a seperate xml file named
view.xml.
How can I instantiate these textview components and add them into
screen?
I know we have inflate method, but once we call inflate, this view.xml
will be added to screen automatically....how can we achieve this?
Thanks.
--
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