[android-developers] load views in xml....oncode

2010-03-02 Thread Kofa
Is there any way i can load a view from xml other than the main
layout.xml? i mean i want to make an xml file for each type of
view, so i can load them any time in the game and don't need to write
every time on code that i want them to appear.

greetings!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] load views in xml....oncode

2010-03-02 Thread social hub
try layoutinflater.inflate or google for it.

On Tue, Mar 2, 2010 at 4:34 PM, Kofa elk...@gmail.com wrote:

 Is there any way i can load a view from xml other than the main
 layout.xml? i mean i want to make an xml file for each type of
 view, so i can load them any time in the game and don't need to write
 every time on code that i want them to appear.

 greetings!

 --
 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en