BinderDataClass에서
다음 코드 제거 : 사용자 정의 할 수 있습니다 당신은 기본적으로 표시 이미지를 변경하려면
String uri = "drawable/"+ weatherDataCollection.get(position).get(KEY_ICON);
int imageResource = vi.getContext().getApplicationContext().getResources().getIdentifier(uri, null, vi.getContext().getApplicationContext().getPackageName());
Drawable image = vi.getContext().getResources().getDrawable(imageResource); holder.tvWeatherImage.setImageDrawable(image);
을 list_row.xml이라는 목록 항목 xml 파일에서 ImageView의 src 속성을 변경합니다.
<ImageView
android:id="@+id/list_image"
android:contentDescription="@string/app_name"
android:layout_width="60dip"
android:layout_height="60dip"
android:src="@drawable/sunny" />