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

2012-12-19 Thread raaj
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 h

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

2008-05-01 Thread Mark Murphy
kingkung wrote: > I followed your suggestion and created my own version of ArrayAdapter, > overriding getView(). > > Everything works, however, with some logging, I'm finding that > getView() is not called n times (n=number of items in list), but 2n+1 > times (getView() is called 3 times for the

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

2008-05-01 Thread kingkung
I followed your suggestion and created my own version of ArrayAdapter, overriding getView(). Everything works, however, with some logging, I'm finding that getView() is not called n times (n=number of items in list), but 2n+1 times (getView() is called 3 times for the first list item, two times a

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

2008-05-01 Thread Mark Murphy
GodsMoon wrote: > Why does everybody love to extend the listAdapters? SimpleAdapter and SimpleCursorAdapter, as you cite below, do not handle every scenario. > Just use the SimpleAdapter it takes an array of textviews. In the original post, the author wanted a varying number of TextView widge

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

2008-04-30 Thread GodsMoon
Why does everybody love to extend the listAdapters? Just use the SimpleAdapter it takes an array of textviews. http://code.google.com/android/reference/android/widget/SimpleAdapter.html Here's an example with a curor simple adapter that does exactly what you want except with 2 textviews instead o

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

2008-04-29 Thread kingkung
Thanks for the detailed response... you may just have found a new buyer for your book. :) On Apr 29, 12:38 pm, Mark Murphy <[EMAIL PROTECTED]> wrote: > kingkung wrote: > > Is there a simple way to do this through a listAdapter, like > > ArrayAdapter, etc.? The way I see it, an ArrayAdapter is on

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

2008-04-29 Thread Mark Murphy
kingkung wrote: > 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 > entri