Пример #1
0
 public static void loadDocHeadImage(BaseActivity activity, ImageView imageView, String uri) {
   if (activity == null) {
     return;
   }
   ImageFetcher fetcher = createImageFetcher(activity);
   if (imageView instanceof CircleImageView) {
     fetcher.setImageFadeIn(false); // 与CircleImageView搭配使用时关闭fadein
   }
   fetcher.loadImage(encodeUri(uri), imageView);
 }
Пример #2
0
 //	public static void loadGroupImage(BaseActivity activity, ImageView imageView, String uri) {
 //
 //		ImageFetcher fetcher  = createThumbImageFetcher(activity);
 //		fetcher.setLoadingImage(R.drawable.msg_img_user_default);
 //		fetcher.loadGroupImage(encodeUri(uri), imageView);
 //
 //	}
 public static void loadPushImage(BaseActivity activity, ImageView imageView, String uri) {
   ImageFetcher fetcher = createThumbImageFetcher(activity);
   fetcher.setLoadingImage(R.drawable.default_weibo_image);
   fetcher.loadImage(encodeUri(uri), imageView);
 }
Пример #3
0
  public static void loadBackgroundImage(BaseActivity activity, ImageView imageView, String uri) {

    ImageFetcher fetcher = createImageFetcher(activity);
    fetcher.setLoadingImage(R.drawable.me_img_info);
    fetcher.loadImage(encodeUri(uri), imageView);
  }
Пример #4
0
  public static void loadShareImage(BaseActivity activity, ImageView imageView, String uri) {

    ImageFetcher fetcher = createThumbImageFetcher(activity);
    fetcher.setLoadingImage(R.drawable.worklife_ic_launcher);
    fetcher.loadImage(encodeUri(uri), imageView);
  }
Пример #5
0
  public static void loadHeadImage(BaseActivity activity, ImageView imageView, String uri) {

    ImageFetcher fetcher = createThumbImageFetcher(activity);
    fetcher.setLoadingImage(R.drawable.msg_img_user_default);
    fetcher.loadImage(encodeUri(uri), imageView);
  }