コード例 #1
0
 @Override
 public void fillData(Map<String, Object> rowData, int position) {
   // 异步加载图片防止错位方法二:com.nostra13.universalimageloader.core.ImageLoader
   universalimageloader.displayImage(
       (String) rowData.get("imageUrl"),
       iv_icon,
       ToolImage.getFadeOptions(R.drawable.default_icon, R.drawable.ic_launcher));
   tv_title.setText((String) rowData.get("title"));
 }
コード例 #2
0
 public ImageListViewHolder(Context mContext) {
   super(mContext);
   this.mContext = mContext;
   universalimageloader = ToolImage.getImageLoader();
 }