Re: [android-developers] Question concerning View creation

2010-05-04 Thread Second Dancer
LayoutInflater is used to inflat layout of xml. You can create view just
like constructing a common object, like Button btn = new Button(context);

2010/5/4 TreKing treking...@gmail.com

 On Mon, May 3, 2010 at 1:14 PM, Patrick patrick.manges...@gmail.comwrote:

 Is there a way to create such a view out of a layout.xml file?


 Yes, use LayoutInflater.


 -
 TreKing - Chicago transit tracking app for Android-powered devices
 http://sites.google.com/site/rezmobileapps/treking

  --
 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




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

[android-developers] Question concerning View creation

2010-05-03 Thread Patrick
Hallo!

I'm currently implementing ExtanableListAdapter extending the ... .
The method getChildView(int groupPosition, int childPosition, boolean
isLastChild, View convertView, ViewGroup parent) of the interface
returns a View. Is there a way to create such a view out of a
layout.xml file? Or is the only way adding stuff like buttons and
Textfield programmatically?

Thanks for you help
Patrick

-- 
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] Question concerning View creation

2010-05-03 Thread TreKing
On Mon, May 3, 2010 at 1:14 PM, Patrick patrick.manges...@gmail.com wrote:

 Is there a way to create such a view out of a layout.xml file?


Yes, use LayoutInflater.

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
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