xuxiuxi
2017-03-29 cfaaca4ab1b0a6ed267161f933f9e4ba187ec1ca
VisitFace/DemoForBsk/app/src/main/java/com/bsk/zhangbo/demoforbsk/adapter/VisitorRecyclerViewAdapter.java
@@ -45,22 +45,9 @@
    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