[android-developers] Extending SimpleCursorAdapter

2010-10-31 Thread Peter Webb
I'm an Android newbie, stuck on a problem for a over week now, if I knew what I was doing it would be 10 minutes work. Im using the NotePad example as a base for an application. This binds a ListActivity to a Provider. Its perfect, except it uses SimpleCursorAdaptor, which means the list only

Re: [android-developers] Extending SimpleCursorAdapter

2010-10-31 Thread Mark Murphy
On Sun, Oct 31, 2010 at 5:12 AM, Peter Webb r.peter.w...@gmail.com wrote: Its perfect, except it uses SimpleCursorAdaptor, which means the list only binds to and displays one item per row. I want it to display two items, both bound the Provider. Or more accurately display the text from one

Re: [android-developers] Extending SimpleCursorAdapter

2010-10-31 Thread Kostya Vasilyev
Peter, SimpleCursorAdapter is the simplified version of the CursorAdapter. You need to use the real thing and override newView() and bindView(). newView needs to load (inflate) a new list item layout. bindView needs to set values in views contained in the list item layout to reflect values