Wednesday, December 19, 2012

[android-developers] Re: list adapter for complex dynamic layouts

Hi ,


   OrderDate :Today
   Order1 
      Item 1
      Item2
   Order 2
     Item1 
   OrderDate : Yesterday
    order 1
     Item1
  OrderDate : SomeDay
    Order 1
    order 2
    Order 3

Explanation:  Many orders with their order numbers.

Single day can have multile orders.

Each order can have many items.

If the order date is same day , Order Date is displayed only once.


Please let me know Adapter class implementations.

Thanks and regards,
Nagaraj
     

   



On Wednesday, April 30, 2008 4:18:42 AM UTC+9, kingkung wrote:
I want to display an array of layouts... each layout has anywhere from
1-3 textviews, depending on how much content is filled in.  So the
display would basically look like this:

1)
<textview A>
<textview B>
<textview C>
-----------------------
2)
<textview A>
<textview B>
----------------------
.
.
.
----------------------
n)
<textview A>
<textview C>


Is there a simple way to do this through a listAdapter, like
ArrayAdapter, etc.?  The way I see it, an ArrayAdapter is only able to
fill in ALL of the textview A's first, and then all of the textview
B's, and then all of the textview C's.  But there are clearly some
entries which don't have all three text views, and hence the array
would leave an empty space for that entry.

I'm not positive how to make it so it does the above.

Hope this question makes sense... any tips would be helpful, thanks!

James

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

No comments:

Post a Comment