SimpleCursorAdapter с ImageView и TextView

вы можете иметь макет с просмотром изображений и textview для строки в SimpleCursorAdapter со списком?

это будет макет

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">

<ImageView
    android:id="@+id/icon"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" />

<TextView
    android:id="@+id/bowler_txt"
    android:paddingLeft="25dp"
    android:textSize="30dp"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Bowler"
    android:textAppearance="?android:attr/textAppearanceLarge" />

</LinearLayout>

можно ли это сделать в SimpleCursorAdapter со списком? когда мне нужны изображения в списке, я всегда использовал настраиваемый адаптер массива, но никогда с курсором.

Как мне установить изображение, если это можно сделать?

9
задан tyczj 14 December 2011 в 19:16
поделиться