bạn có thể có bố cục với imageview
và textview
cho một hàng trong một SimpleCursorAdapter
với chế độ xem danh sách không?SimpleCursorAdapter với ImageView và TextView
này sẽ được bố trí
<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>
nó có thể được thực hiện trong SimpleCursorAdapter với một listview? khi tôi cần hình ảnh trong một listview tôi luôn luôn sử dụng một mảng tùy chỉnh nhưng không bao giờ với một con trỏ.
Tôi làm cách nào để đặt hình ảnh nếu nó có thể được thực hiện?
... hoặc ghi đè setViewImage – Selvin