com.jess.arms.http.imageloader.ImageLoader Java Examples

The following examples show how to use com.jess.arms.http.imageloader.ImageLoader. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: VideoDetailPresenter.java    From LQRBiliBlili with MIT License 5 votes vote down vote up
@Inject
public VideoDetailPresenter(VideoDetailContract.Model model, VideoDetailContract.View rootView
        , RxErrorHandler handler, Application application
        , ImageLoader imageLoader, AppManager appManager) {
    super(model, rootView);
    this.mErrorHandler = handler;
    this.mApplication = application;
    this.mImageLoader = imageLoader;
    this.mAppManager = appManager;
    RetrofitUrlManager.getInstance().putDomain("video_detail_summary", Api.VIDEO_DETAIL_SUMMARY_BASE_URL);
    RetrofitUrlManager.getInstance().putDomain("video_detail_reply", Api.VIDEO_DETAIL_REPLY_BASE_URL);
}
 
Example #2
Source File: MainCategoryPresenter.java    From LQRBiliBlili with MIT License 5 votes vote down vote up
@Inject
public MainCategoryPresenter(MainCategoryContract.Model model, MainCategoryContract.View rootView, RxErrorHandler handler, Application application, ImageLoader imageLoader, AppManager appManager) {
    super(model, rootView);
    mErrorHandler = handler;
    mApplication = application;
    mImageLoader = imageLoader;
    mAppManager = appManager;
}
 
Example #3
Source File: SearchPresenter.java    From Aurora with Apache License 2.0 5 votes vote down vote up
@Inject
public SearchPresenter(SearchContract.Model model, SearchContract.View rootView
        , RxErrorHandler handler, Application application
        , ImageLoader imageLoader, AppManager appManager) {
    super(model, rootView);
    this.mErrorHandler = handler;
    this.mApplication = application;
    this.mImageLoader = imageLoader;
    this.mAppManager = appManager;
}
 
Example #4
Source File: VideoPresenter.java    From Aurora with Apache License 2.0 5 votes vote down vote up
@Inject
public VideoPresenter(VideoContract.Model model, VideoContract.View rootView
        , RxErrorHandler handler, Application application
        , ImageLoader imageLoader, AppManager appManager) {
    super(model, rootView);
    this.mErrorHandler = handler;
    this.mApplication = application;
    this.mImageLoader = imageLoader;
    this.mAppManager = appManager;
}
 
Example #5
Source File: HistoryPresenter.java    From Aurora with Apache License 2.0 5 votes vote down vote up
@Inject
public HistoryPresenter(HistoryContract.Model model, HistoryContract.View rootView
        , RxErrorHandler handler, Application application
        , ImageLoader imageLoader, AppManager appManager) {
    super(model, rootView);
    this.mErrorHandler = handler;
    this.mApplication = application;
    this.mImageLoader = imageLoader;
    this.mAppManager = appManager;
}
 
Example #6
Source File: AttentionPresenter.java    From Aurora with Apache License 2.0 5 votes vote down vote up
@Inject
public AttentionPresenter(AttentionContract.Model model, AttentionContract.View rootView
        , RxErrorHandler handler, Application application
        , ImageLoader imageLoader, AppManager appManager) {
    super(model, rootView);
    this.mErrorHandler = handler;
    this.mApplication = application;
    this.mImageLoader = imageLoader;
    this.mAppManager = appManager;
}
 
Example #7
Source File: HotPresenter.java    From Aurora with Apache License 2.0 5 votes vote down vote up
@Inject
public HotPresenter(HotContract.Model model, HotContract.View rootView
        , RxErrorHandler handler, Application application
        , ImageLoader imageLoader, AppManager appManager) {
    super(model, rootView);
    this.mErrorHandler = handler;
    this.mApplication = application;
    this.mImageLoader = imageLoader;
    this.mAppManager = appManager;
}
 
Example #8
Source File: SplashPresenter.java    From Aurora with Apache License 2.0 5 votes vote down vote up
@Inject
public SplashPresenter(SplashContract.Model model, SplashContract.View rootView
        , RxErrorHandler handler, Application application
        , ImageLoader imageLoader, AppManager appManager) {
    super(model, rootView);
    this.mErrorHandler = handler;
    this.mApplication = application;
    this.mImageLoader = imageLoader;
    this.mAppManager = appManager;
}
 
Example #9
Source File: VideoListActivityPresenter.java    From Aurora with Apache License 2.0 5 votes vote down vote up
@Inject
public VideoListActivityPresenter(VideoListActivityContract.Model model, VideoListActivityContract.View rootView
        , RxErrorHandler handler, Application application
        , ImageLoader imageLoader, AppManager appManager) {
    super(model, rootView);
    this.mErrorHandler = handler;
    this.mApplication = application;
    this.mImageLoader = imageLoader;
    this.mAppManager = appManager;
}
 
Example #10
Source File: CategoryPresenter.java    From Aurora with Apache License 2.0 5 votes vote down vote up
@Inject
public CategoryPresenter(CategoryContract.Model model, CategoryContract.View rootView
        , RxErrorHandler handler, Application application
        , ImageLoader imageLoader, AppManager appManager) {
    super(model, rootView);
    this.mErrorHandler = handler;
    this.mApplication = application;
    this.mImageLoader = imageLoader;
    this.mAppManager = appManager;
}
 
Example #11
Source File: VideoDetailPresenter.java    From Aurora with Apache License 2.0 5 votes vote down vote up
@Inject
public VideoDetailPresenter(VideoDetailContract.Model model, VideoDetailContract.View rootView
        , RxErrorHandler handler, Application application
        , ImageLoader imageLoader, AppManager appManager) {
    super(model, rootView);
    this.mErrorHandler = handler;
    this.mApplication = application;
    this.mImageLoader = imageLoader;
    this.mAppManager = appManager;
}
 
Example #12
Source File: AuthorDetailPresenter.java    From Aurora with Apache License 2.0 5 votes vote down vote up
@Inject
public AuthorDetailPresenter(AuthorDetailContract.Model model, AuthorDetailContract.View rootView
        , RxErrorHandler handler, Application application
        , ImageLoader imageLoader, AppManager appManager) {
    super(model, rootView);
    this.mErrorHandler = handler;
    this.mApplication = application;
    this.mImageLoader = imageLoader;
    this.mAppManager = appManager;
}
 
Example #13
Source File: LivePresenter.java    From LQRBiliBlili with MIT License 5 votes vote down vote up
@Inject
public LivePresenter(LiveContract.Model model, LiveContract.View rootView, RxErrorHandler errorHandler, Application application, ImageLoader imageLoader, AppManager appManager) {
    super(model, rootView);
    mErrorHandler = errorHandler;
    mApplication = application;
    mImageLoader = imageLoader;
    mAppManager = appManager;
}
 
Example #14
Source File: MainPresenter.java    From LQRBiliBlili with MIT License 5 votes vote down vote up
@Inject
public MainPresenter(MainContract.Model model, MainContract.View rootView
        , RxErrorHandler handler, Application application
        , ImageLoader imageLoader, AppManager appManager) {
    super(model, rootView);
    this.mErrorHandler = handler;
    this.mApplication = application;
    this.mImageLoader = imageLoader;
    this.mAppManager = appManager;
}
 
Example #15
Source File: RecommendPresenter.java    From LQRBiliBlili with MIT License 5 votes vote down vote up
@Inject
public RecommendPresenter(RecommendContract.Model model, RecommendContract.View rootView, RxErrorHandler errorHandler, Application application, ImageLoader imageLoader, AppManager appManager) {
    super(model, rootView);
    mErrorHandler = errorHandler;
    mApplication = application;
    mImageLoader = imageLoader;
    mAppManager = appManager;
}
 
Example #16
Source File: DetailActivity.java    From Hands-Chopping with Apache License 2.0 4 votes vote down vote up
@Override
public void onSankoFinished(GameDetailBean bean) {
    List<String> images=new ArrayList<>();
    for(int i=0;i<bean.getBannnerImages().size();++i){
        images.add(bean.getBannnerImages().get(i));
        if(i==3){
            break;
        }
    }
    xBanner.setData(images,null);
    xBanner.loadImage(new XBanner.XBannerAdapter() {
        @Override
        public void loadBanner(XBanner banner, Object model, View view, int position) {
            Glide.with(DetailActivity.this).load(bean.getBannnerImages().get(position)).into((ImageView)view);
        }
    });

    title.setText(bean.getTitle());

    ImageLoader imageLoader=ArmsUtils.obtainAppComponentFromContext(this).imageLoader();
    imageLoader.loadImage(this,
            CommonImageConfigImpl
                    .builder()
                    .url(bean.getImg())
                    .imageView(headerImg)
                    .build());

    gameDes.loadData(bean.getGameDescription(),"text/html", "UTF-8");

    sysReq.loadData(bean.getSyaRequest(),"text/html", "UTF-8");

    review.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            Intent intent=new Intent(DetailActivity.this,DetialReviewActivity.class);
            intent.putStringArrayListExtra("reviews",bean.getReviews());
            startActivity(intent);
        }
    });
    hideLoading();
}
 
Example #17
Source File: DetailActivity.java    From Hands-Chopping with Apache License 2.0 4 votes vote down vote up
@Override
public void onSteamFinished(GameDetailBean bean) {
    List<String> imgs=new ArrayList<>();
    for(int i=0;i<bean.getBannnerImages().size();++i){
        imgs.add(bean.getBannnerImages().get(i));
        if(i==3){
            break;
        }
    }
    xBanner.setData(imgs,null);
    xBanner.loadImage(new XBanner.XBannerAdapter() {
        @Override
        public void loadBanner(XBanner banner, Object model, View view, int position) {
            Glide.with(DetailActivity.this).load(bean.getBannnerImages().get(position)).into((ImageView)view);
        }
    });
    if(isBundle){
        xBanner.setVisibility(View.GONE);
    }

    title.setText(bean.getTitle());

    ImageLoader imageLoader=ArmsUtils.obtainAppComponentFromContext(this).imageLoader();
    if(bean.getImg()!=null){
        imageLoader.loadImage(this,
                CommonImageConfigImpl
                        .builder()
                        .url(bean.getImg())
                        .imageView(headerImg)
                        .build());
    }

    pinDes.setText(bean.getGameDescription());

    if(isBundle){
        pinDes.setVisibility(View.GONE);
    }

    String head = "<head>" +
            "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, user-scalable=no\"> " +
            "<style>img{max-width:100% !important; width:auto; height:auto;}</style>" +
            "</head>";
    String gameinfo="<html>" + head + "<body style:'height:auto;max-width: 100%; width:auto;'>" + bean.getGameInfo() + "</body></html>";

    gameDes.loadData(gameinfo,"text/html", "UTF-8");

    if(bean.getGameInfo()==null){
        gameDes.setVisibility(View.GONE);
    }

    String gamedes="<html>" + head + "<body style:'height:auto;max-width: 100%; width:auto;'>" + bean.getSyaRequest() + "</body></html>";
    sysReq.loadData(gamedes,"text/html", "UTF-8");

    review.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            Intent intent=new Intent(DetailActivity.this,DetialReviewActivity.class);
            intent.putStringArrayListExtra("reviews", bean.getReviews());
            startActivity(intent);
        }
    });
    hideLoading();
}
 
Example #18
Source File: AppComponent.java    From MVPArms with Apache License 2.0 2 votes vote down vote up
/**
 * 图片加载管理器, 用于加载图片的管理类, 使用策略者模式, 可在运行时动态替换任何图片加载框架
 * arms-imageloader-glide 提供 Glide 的策略实现类, 也可以自行实现
 * 需要在 {@link ConfigModule#applyOptions(Context, GlobalConfigModule.Builder)} 中
 * 手动注册 {@link BaseImageLoaderStrategy}, {@link ImageLoader} 才能正常使用
 *
 * @return
 */
ImageLoader imageLoader();
 
Example #19
Source File: AppComponent.java    From Aurora with Apache License 2.0 votes vote down vote up
ImageLoader imageLoader();