{"id":21345228,"url":"https://github.com/susionsuc/draggableimageviewer","last_synced_at":"2025-10-04T00:48:17.258Z","repository":{"id":44687447,"uuid":"203801692","full_name":"SusionSuc/DraggableImageViewer","owner":"SusionSuc","description":"大图浏览 \u0026 图片查看\u0026拖拽退出。类似于微信、B站的图片 \u0026 视频浏览器。","archived":false,"fork":false,"pushed_at":"2020-06-02T03:47:05.000Z","size":8215,"stargazers_count":277,"open_issues_count":10,"forks_count":39,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-27T02:11:34.009Z","etag":null,"topics":["android","bigimage","bigimageviewer","draggable","glide","image","image-viewer"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/SusionSuc.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}},"created_at":"2019-08-22T13:32:36.000Z","updated_at":"2025-02-06T16:06:45.000Z","dependencies_parsed_at":"2022-08-30T05:32:08.492Z","dependency_job_id":null,"html_url":"https://github.com/SusionSuc/DraggableImageViewer","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/SusionSuc%2FDraggableImageViewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SusionSuc%2FDraggableImageViewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SusionSuc%2FDraggableImageViewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SusionSuc%2FDraggableImageViewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SusionSuc","download_url":"https://codeload.github.com/SusionSuc/DraggableImageViewer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248703194,"owners_count":21148117,"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":["android","bigimage","bigimageviewer","draggable","glide","image","image-viewer"],"created_at":"2024-11-22T01:30:06.693Z","updated_at":"2025-10-04T00:48:12.237Z","avatar_url":"https://github.com/SusionSuc.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n一款类似 微信/B站 的图片浏览组件, 主要具有以下特点:\n\n1. 类似共享元素的入场\u0026退场动画(图片在入场时给人一种渐渐展开的效果)\n2. 拖拽\u0026双击退出图片查看\n3. 支持缩放手势\n4. 支持查看长图\n5. 支持查看原图 \u0026 下载原图\n6. 支持显示GIF \u0026 可复用Glide的Bitmap内存缓存,避免OOM\n\n# 快速使用\n\n### 引入\n\n```\ndependencies {\n    implementation 'com.susion:image-viewer:1.0.2'\n}\n```\n\n### 展示一张图片:\n\n```\nImageViewerHelper.showSimpleImage(context, url, imageView)\n```\n\n### 展示多张图片:\n\n```\nval imags = ArrayList\u003cImageViewerHelper.ImageInfo\u003e()\nimags.add(ImageViewerHelper.ImageInfo(url1))\nimags.add(ImageViewerHelper.ImageInfo(url2))\nImageViewerHelper.showImages(this, listOf(mImagesIv1, mImagesIv2, mImagesIv3), imags, index)\n```\n\n### 缩略图的展示\n\n支持优先展示缩略图，然后缓慢加载原图:\n\n```\nImageViewerHelper.showSimpleImage(this, ImageViewerHelper.ImageInfo(thumbnailUrl, imgSize), imageView)\n```\n\n# 效果展示\n\n![gif1](pic/gif1.gif)\n\n![gif1](pic/gif2.gif)\n\n![gif1](pic/gif3.gif)\n\n\n# [实现原理分析](https://juejin.im/post/5d6b9a93f265da03970bd19f)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsusionsuc%2Fdraggableimageviewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsusionsuc%2Fdraggableimageviewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsusionsuc%2Fdraggableimageviewer/lists"}