Hi want to create a custom cursor adapter so I can display an image with 2 lines of text. I have had some trouble understanding the custom cursor adapters but I do not under
Adding images and text is not specific to CursorAdapter
; you use the same technique for any kind of adapter. You can create a layout for your row and inflate it inside your getView
method. The APIDemos sample project, contained in the Android SDK android-sdk-PLATFORM/samples/android-XY/ApiDemos
folder, does what you want. You can find the row definitons in list_item_icon_text.xml
. Here is copy of file content (w/o the license).