14.12.2010 18:49, tharshi пишет:
How Can we use external resource as data into the layoutinflater in
If you mean load a layout from xml file that's not inside res/layout,
check out inflate() methods that take XmlPullParser as a parameter.
The docs have a warning, though:
Inflate a new view hierarchy from the specified xml node. Throws
InflateException if there is an error. *
Important For performance reasons, view inflation relies heavily on
pre-processing of XML files that is done at build time. Therefore, it
is not currently possible to use LayoutInflater with an XmlPullParser
over a plain XML file at runtime.
You can also come up with your own file format, parse is, and build
views from code.
listview and separate images for each rows?
Thanks in advance
On Nov 11, 6:19 pm, Kostya Vasilyev<[email protected]> wrote:
That's pretty much the fundamentals of using ListView.
As such, there are lots and lots of samples. For example, this one:
http://developer.android.com/resources/samples/ApiDemos/src/com/examp...
11.11.2010 14:15, kahken пишет:
Hi guys,
May I know how to use the layoutinflater in listview?
Thanks in advance.
--
Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en