Sure, that's possible:
http://developer.android.com/reference/android/view/LayoutInflater.html#inflate(int,
android.view.ViewGroup)
You'd also need a way to position these views. You could use a
TableLayout, instantiating TableRows from code as needed, and adding
inflated (as per the above link) layouts representing table cells to
table rows.
Or you could just use a class that does that for you:
http://developer.android.com/reference/android/widget/GridView.html
-- Kostya
22.12.2010 20:08, sisko пишет:
Hi guys,
I am developing an app that need to display information on the stock
of a store. Each activity will have upto 100 items.
My plan is to layout this information in a 10 * 10 grid. Each box in
the grid represents an item of stock. Each of these items will be
represented by an icon and a piece of text beneath the icon (the
name). I setup a new layout which has an ImageView and a TextView for
this. I called the layout Tab.xml
So, I need to know if it is possible to write a java class which will
use the Tab.xml as the layout.
Then I can programmatically create each java class item, setting the
image and text as I go along.
Can anyone please give me some direction about this?
--
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