[android-developers] Re: custom View using Adapter iface

2009-02-17 Thread Don
Thanks for your very helpful example, I'm trying to discover what an Adapter must do. For example, it must implement a getItem method, but are there any standard views that will call getItem? If i don't call it myself, could I simply throw an exception if it is called? I'm finding the

[android-developers] Re: custom View using Adapter iface

2009-01-31 Thread Marco Schmitz
take a look into the api samples. there are 14 lists, and one of them has a very performant adapter... greetings, darolla 2009/1/31 skink psk...@gmail.com: hi, i want to create custom View showing possibly several items. i think using Adapter interface would be good idea. my question

[android-developers] Re: custom View using Adapter iface

2009-01-31 Thread Marco Schmitz
/** * Demonstrates how to write an efficient list adapter. The adapter used in this example binds * to an ImageView and to a TextView for each row in the list. * * To work efficiently the adapter implemented here uses two techniques: * - It reuses the convertView passed to getView() to avoid

[android-developers] Re: custom View using Adapter iface

2009-01-31 Thread skink
On 31 Sty, 12:39, Marco Schmitz netzprofi.ma...@googlemail.com wrote: /**  * Demonstrates how to write an efficient list adapter. */ thanks Marco, but i don't want to use ListViews. i want to write my own custom View, since from some reasons ListViews dont fit to my requirenents