これは私のカスタムリストビューの行です。ご覧のとおり、3つのimageViewがあります。どうすればオーバーライドできますか
public View getView(int position, View convertView, ViewGroup parent)
リストにあるimageviewの数に関係なく、imageView.setImageResourceを設定できるように、アダプタークラスの どんな助けでも大歓迎です。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<RelativeLayout
android:id="@+id/LinearLayout01"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_marginRight="10px" />
<ImageView
android:id="@+id/image1"
android:layout_toRightOf= "@+id/image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="10px" />
<ImageView
android:id="@+id/image2"
android:layout_toRightOf= "@+id/image1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="10px" />
</RelativeLayout>
</LinearLayout>