के साथ SimpleCursorAdapter क्या आपके पास imageview
और textview
के साथ एक सूची दृश्य के साथ SimpleCursorAdapter
में एक पंक्ति के लिए लेआउट हो सकता है?ImageCiew और TextView
इस लेआउट होगा
<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 में किया जा सकता? जब मुझे एक सूचीदृश्य में छवियों की आवश्यकता होती है तो मैंने हमेशा एक कस्टम सरणीकरण का उपयोग किया लेकिन कभी कर्सर के साथ नहीं।
यदि यह किया जा सकता है तो मैं छवि को कैसे सेट करूं?
... या setViewImage ओवरराइड करें – Selvin