On Tue, Sep 28, 2010 at 8:40 PM, Varun Khanduja <[email protected]>wrote:
> If anyone has time please try to help me out. Thanks, I looked into some > examples but really found it hard to see how I can have the custom adapter > runnning. > The "custom" part of an adapter is basically returning the View you want to show in your list for a given item. Currently you have the default ArrayAdapter that works on Strings. Since you want something more complicated, all you have to do is create a class that extends ArrayAdapter and override the getView() method to return the layouts you want (as you described) based on the state of your list. So the first thing to do is create your custom ArrayAdapter, override getView, then set it as the adapter to your list and verify your views show up as expected. ------------------------------------------------------------------------------------------------- TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago transit tracking app for Android-powered devices -- 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

