{"id":20892717,"url":"https://github.com/aweiloveandroid/imageloaderprocessor","last_synced_at":"2026-03-17T21:05:16.882Z","repository":{"id":110403097,"uuid":"98543283","full_name":"AweiLoveAndroid/ImageLoaderProcessor","owner":"AweiLoveAndroid","description":"优雅的实现Android主流图片框架封装，可无缝侵入切换图片框架","archived":false,"fork":false,"pushed_at":"2018-04-18T00:49:03.000Z","size":135,"stargazers_count":59,"open_issues_count":2,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-29T11:38:31.056Z","etag":null,"topics":["android","glide","image","java","picasso"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AweiLoveAndroid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-07-27T14:07:56.000Z","updated_at":"2023-11-08T11:10:18.000Z","dependencies_parsed_at":"2023-03-13T13:54:50.695Z","dependency_job_id":null,"html_url":"https://github.com/AweiLoveAndroid/ImageLoaderProcessor","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/AweiLoveAndroid/ImageLoaderProcessor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AweiLoveAndroid%2FImageLoaderProcessor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AweiLoveAndroid%2FImageLoaderProcessor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AweiLoveAndroid%2FImageLoaderProcessor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AweiLoveAndroid%2FImageLoaderProcessor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AweiLoveAndroid","download_url":"https://codeload.github.com/AweiLoveAndroid/ImageLoaderProcessor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AweiLoveAndroid%2FImageLoaderProcessor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30631437,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","glide","image","java","picasso"],"created_at":"2024-11-18T10:13:44.697Z","updated_at":"2026-03-17T21:05:16.864Z","avatar_url":"https://github.com/AweiLoveAndroid.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ImageLoaderProcessor\n\u003e ## 优雅的实现Android主流图片框架封装，可无缝侵入切换图片框架\n\n**这个库主要是解决项目过程中不同人使用不同的图片框架，导致项目开发难度增大，为了统一和平衡，就写了这么一个隔离型框架，可以快速切换图片框架，调用的地方不会有什么影响。这才是这个库最有意思的地方。**\n\n## 使用方式如下：\n\n\n\u003e **一、首先在application里面声明使用哪个框架**\n\n\tpublic class MyApp extends Application{\n\t    @Override\n\t    public void onCreate() {\n\t\tsuper.onCreate();\n\n\t\t//这里只需要一行代码切换图片加载框架，6不6！！！\n\n\t\t//初始化Picasso方式加载图片\n\t\tImageLoaderHelper.setImageLoader(new PicassoLoaderProcessor(new LoaderOptions()));\n\n\t\t//初始化Glide方式网络请求代理\n\t\t//ImageLoaderHelper.setImageLoader(new GlideLoaderProcessor());\n\t    }\n\t}\n\n\n\u003e **二、在代码里面具体使用***\n\n**这里只是一个简单的使用，这个库只是提供一种思想，具体的细致的封装可以自己进一步去实现。**\n\n\tpublic class MainActivity extends AppCompatActivity {\n\n\t    private ImageView imageView;\n\n\t    @Override\n\t    protected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_main);\n\n\t\timageView = (ImageView) findViewById(R.id.iv);\n\n\t\t//真正的加载图片的操作\n\t\tImageLoaderHelper.getsInstance()\n\t\t\t.loadImage(imageView,R.mipmap.ic_launcher)//参数1为控件，参数2为要下载的图片\n\t\t\t.setLoaderOptions(new LoaderOptions.Builder()//设置图片具体的参数\n\t\t\t\t.angle(2)//角度\n\t\t\t\t.centerCrop()//填充方式，它与centerInside不能同时使用\n\t\t\t\t//.centerInside()\n\t\t\t\t.config(Bitmap.Config.RGB_565)\n\t\t\t\t.error(R.drawable.ic_holder)//加载失败显示的图片\n\t\t\t\t.placeHolder(R.drawable.ic_holder)//占位图\n\t\t\t\t.reSize(200,200)\n\t\t\t\t.build())\n\t\t\t.clearDiskCache()//清理缓存\n\t\t\t.clearMemoryCache();//清理内存缓存\n\t    }\n\t}\n\n-------------------------\n是不是很简单？\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faweiloveandroid%2Fimageloaderprocessor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faweiloveandroid%2Fimageloaderprocessor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faweiloveandroid%2Fimageloaderprocessor/lists"}