| | |
| | | private TextView mToNameTv;
|
| | | private TextView mToDepartmentTv;
|
| | |
|
| | | private ImageLoader imageLoader = null;
|
| | | private DisplayImageOptions options = null;
|
| | |
|
| | | public VisitorRecyclerViewAdapter(Context mContext, int type) {
|
| | | this.mContext = mContext;
|
| | | this.type = type;
|
| | | options = new DisplayImageOptions.Builder()
|
| | | // .showImageOnLoading(R.drawable.zhanwei)
|
| | | // .showImageForEmptyUri(R.drawable.zhanwei)
|
| | | // .showImageOnFail(R.drawable.zhanwei).cacheInMemory(false)
|
| | | .cacheOnDisc(true).considerExifParams(true)
|
| | | .displayer(new FadeInBitmapDisplayer(500))
|
| | | .bitmapConfig(Bitmap.Config.ALPHA_8) // default 设置图片的解码类型
|
| | | .build();
|
| | | imageLoader = ImageLoader.getInstance();
|
| | | imageLoader.init(ImageLoaderConfiguration.createDefault(MainActivity.getInstance()));
|
| | | }
|
| | |
|
| | | @Override
|