Re: [android-developers] Can we create UI component in a seperate XML file and load it

2011-04-15 Thread akruti patel
How can i leave this group.I have joint by mistake so how can i leave this? On Wed, Apr 13, 2011 at 10:57 PM, Nasif Noorudeen nas...@gmail.com wrote: By using LayoutInflater On Wed, Apr 13, 2011 at 10:27 PM, usher usher...@gmail.com wrote: So I have created this activity, and

Re: [android-developers] Can we create UI component in a seperate XML file and load it

2011-04-15 Thread Kostya Vasilyev
Start by reading the bottom of this email. 15.04.2011 11:01, akruti patel ?: How can i leave this group.I have joint by mistake so how can i leave this? On Wed, Apr 13, 2011 at 10:57 PM, Nasif Noorudeen nas...@gmail.com mailto:nas...@gmail.com wrote: By using LayoutInflater On

Re: [android-developers] Can we create UI component in a seperate XML file and load it

2011-04-15 Thread Robin Talwar
First create a class file not an activity and extend it with linearlayout This will create your custom view . Now lets suppose the package of your custom view is org.customView and class is mylayoutfile.class Then in the main.xml you can add this layout file just as you add a button, textview or

[android-developers] Can we create UI component in a seperate XML file and load it

2011-04-13 Thread usher
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

Re: [android-developers] Can we create UI component in a seperate XML file and load it

2011-04-13 Thread Nasif Noorudeen
By using LayoutInflater On Wed, Apr 13, 2011 at 10:27 PM, usher usher...@gmail.com wrote: 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