80,490
社区成员
发帖
与我相关
我的任务
分享
holder.img.setTag(totalList.get(position).getSrc());
if(holder.img.getTag() != null && holder.img.getTag().equals(totalList.get(position).getSrc())){
ImageLoader.getInstance().displayImage(totalList.get(position).getSrc(), holder.img);
}
holder.tv.setText(totalList.get(position).getDetail());
<LinearLayout android:layout_height="match_parent"
android:layout_width="match_parent"
android:background="@drawable/bg_card"
android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:layout_height="wrap_content"
android:layout_width="match_parent"
android:scaleType="centerCrop"
android:id="@+id/img"/>
<TextView android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:id="@+id/tv"
android:gravity="center"/>
</LinearLayout>