{"id":13643988,"url":"https://github.com/imuhao/RxPicker","last_synced_at":"2025-04-21T06:32:24.553Z","repository":{"id":90707756,"uuid":"88858387","full_name":"imuhao/RxPicker","owner":"imuhao","description":"The ImageSelect tool based on RxJava.","archived":false,"fork":false,"pushed_at":"2018-09-11T09:47:52.000Z","size":3803,"stargazers_count":348,"open_issues_count":5,"forks_count":40,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-11-09T16:43:31.084Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imuhao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-04-20T11:33:20.000Z","updated_at":"2024-08-02T07:53:50.000Z","dependencies_parsed_at":"2024-01-10T20:11:31.282Z","dependency_job_id":null,"html_url":"https://github.com/imuhao/RxPicker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imuhao%2FRxPicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imuhao%2FRxPicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imuhao%2FRxPicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imuhao%2FRxPicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imuhao","download_url":"https://codeload.github.com/imuhao/RxPicker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250008242,"owners_count":21359954,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-08-02T01:01:55.874Z","updated_at":"2025-04-21T06:32:19.543Z","avatar_url":"https://github.com/imuhao.png","language":"Java","funding_links":[],"categories":["图片"],"sub_categories":[],"readme":"# RxPicker\nThe ImageSelect tool based on RxJava.\n\n[中文文档](./README_CN.md)\n\n## Feature\n\n1. Combined with RxJava , Supper observer pattern to get result\n2. Compatible with Android 7.0\n3. Custom Image Loader\n\n\n## Preview\n\n\u003cimage src=\"./image/1.png\" width=\"200px\"/\u003e \u003cimage src=\"./image/2.png\" width=\"200px\"/\u003e \n\n## Use Glide\n\n1.Add gradle:\n\n```\ncompile 'com.caimuhao:rxpicker:1.1.5'\n```\n\n2.Extends `RxPickerImageLoader` create custom  ImageLoader\n\n```\npublic class GlideImageLoader implements RxPickerImageLoader {\n\n  @Override public void display(ImageView imageView, String path, int width, int height) {\n    Glide.with(imageView.getContext())\n        .load(path)\n        .error(R.drawable.ic_preview_image)\n        .centerCrop()\n        .override(width, height)\n        .into(imageView);\n  }\n}\n```\n\n3.Initialize RxPicker\n\n```\nRxPicker.init(new GlideImageLoader());\n```\n\n4.Use\n\n-  Single Image\n\n```\nRxPicker.of().start(this).subscribe(new Consumer\u003cList\u003cImageItem\u003e\u003e() {\n        @Override public void accept(@NonNull List\u003cImageItem\u003e imageItems) throws Exception {\n          //Get the result\n        }\n      });\n```\n\n- Multiple Images\n\n```\nRxPicker.of()\n          .single(false)\n          .camera(true)\n          .limit(3,9)\n          .start(this)\n          .subscribe(new Consumer\u003cList\u003cImageItem\u003e\u003e() {\n            @Override public void accept(@NonNull List\u003cImageItem\u003e imageItems) throws Exception {\n              //Get the result\n            }\n          });\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimuhao%2FRxPicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimuhao%2FRxPicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimuhao%2FRxPicker/lists"}