{"id":28997801,"url":"https://github.com/hqs5678/hqs-common-imagebrowser-android","last_synced_at":"2026-05-16T13:04:32.328Z","repository":{"id":301066240,"uuid":"79288352","full_name":"hqs5678/hqs-common-imagebrowser-android","owner":"hqs5678","description":"image browser for adroid","archived":false,"fork":false,"pushed_at":"2017-07-12T01:01:39.000Z","size":18221,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-31T10:32:48.458Z","etag":null,"topics":["android","android-image-browser","android-image-viewer","android-imageviewer","image-browser-for-android","imageviewer","photo-browser","photo-browser-for-android"],"latest_commit_sha":null,"homepage":null,"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/hqs5678.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-01-18T00:52:11.000Z","updated_at":"2024-04-30T06:23:44.000Z","dependencies_parsed_at":"2025-06-25T01:59:41.096Z","dependency_job_id":null,"html_url":"https://github.com/hqs5678/hqs-common-imagebrowser-android","commit_stats":null,"previous_names":["hqs5678/hqs-common-imagebrowser-android"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hqs5678/hqs-common-imagebrowser-android","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hqs5678%2Fhqs-common-imagebrowser-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hqs5678%2Fhqs-common-imagebrowser-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hqs5678%2Fhqs-common-imagebrowser-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hqs5678%2Fhqs-common-imagebrowser-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hqs5678","download_url":"https://codeload.github.com/hqs5678/hqs-common-imagebrowser-android/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hqs5678%2Fhqs-common-imagebrowser-android/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33103971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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","android-image-browser","android-image-viewer","android-imageviewer","image-browser-for-android","imageviewer","photo-browser","photo-browser-for-android"],"created_at":"2025-06-25T06:30:24.783Z","updated_at":"2026-05-16T13:04:32.290Z","avatar_url":"https://github.com/hqs5678.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Android 图片浏览器\n\n简单的Android浏览器\n##### 运行效果图\n![运行效果图](https://github.com/hqs5678/hqs-common-imagebrowser-android/blob/master/2017-07-06%2016_29_35.gif)\n\n## 安装说明\n### Gradle\n```\n    compile 'com.hqs.common.helper.imagebrowser:imagebrowser:1.1.19'\n```\n## 关于代码混淆\n\u003e 如果在缩放图片时出现莫名其妙的bug,由于使用了类的反射机制, 需要注意代码混淆\n\n##### 请在项目的混淆文件如：proguard-rules.pro中添加如下代码\n```\n-keep class com.bm.library.** {*;}\n```\n\n##### 使用方法, 以RecyclerView的adapter为例, 详情请查看Demo, 以下为核心代码\n```\n\n@Override\npublic void onBindViewHolder(RecyclerView.ViewHolder holder, final int position) {\n\n    MyViewHolder myViewHolder = (MyViewHolder) holder;\n    myViewHolder.imageView.setImageDrawable(Drawable.createFromPath(files.get(position)));\n\n    myViewHolder.imageView.setOnClickListener(new View.OnClickListener() {\n        @Override\n        public void onClick(View v) {\n\n            // 生成图片源数据\n            \n            ArrayList\u003cQImage\u003e imgs = new ArrayList\u003c\u003e();\n\n            for (int i = 0; i \u003c files.size(); i++) {\n                QImage qImage = new QImage();\n                qImage.filePathOrUrl = files.get(i);\n\n                if(i == position){\n                    qImage.srcImageView = (ImageView) v;\n                }\n\n                imgs.add(qImage);\n            }\n            \n            // 设置占位图片\n            ImageBrowser.placeHolderImageRes = R.mipmap.ic_launcher;\n            // 开始浏览图片\n            ImageBrowser.showWithImages(LocalImageActivity.this, imgs, position);\n\n        }\n    });\n}\n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhqs5678%2Fhqs-common-imagebrowser-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhqs5678%2Fhqs-common-imagebrowser-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhqs5678%2Fhqs-common-imagebrowser-android/lists"}