{"id":20958522,"url":"https://github.com/junixapp/imagegridview","last_synced_at":"2025-05-14T06:32:25.862Z","repository":{"id":108524494,"uuid":"179106206","full_name":"junixapp/ImageGridView","owner":"junixapp","description":"【不再维护】微博，微信九宫格图片布局，搭配XPopup的大图浏览弹窗，体验好到飞起。","archived":false,"fork":false,"pushed_at":"2019-04-02T15:37:27.000Z","size":3101,"stargazers_count":19,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T14:02:15.291Z","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/junixapp.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}},"created_at":"2019-04-02T15:22:52.000Z","updated_at":"2023-02-20T10:41:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"bc070714-5600-4d3d-b16c-344282998d36","html_url":"https://github.com/junixapp/ImageGridView","commit_stats":null,"previous_names":["junixapp/imagegridview"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junixapp%2FImageGridView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junixapp%2FImageGridView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junixapp%2FImageGridView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junixapp%2FImageGridView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/junixapp","download_url":"https://codeload.github.com/junixapp/ImageGridView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254084703,"owners_count":22011927,"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-11-19T01:48:05.057Z","updated_at":"2025-05-14T06:32:20.855Z","avatar_url":"https://github.com/junixapp.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ImageGridView\n微博，微信九宫格图片布局，配上目前可能是Android最好的大图浏览效果。\n由[https://github.com/jeasonlzy/NineGridView](https://github.com/jeasonlzy/NineGridView)修改而来。\n\n## Demo\n![](/screenshot/demo.gif)\n\n## 使用\n ![Download](https://api.bintray.com/packages/li-xiaojun/jrepo/imagegridview/images/download.svg)\n 添加依赖\n ```groovy\n implementation 'com.lxj:imagegridview:最新版本'\n ```\n\n\n使用：\n```kotlin\nimageGrid.setAdapter(object : ImageGridAdapter(this, t.list) {\n            override fun onImageItemClick(\n                context: Context,\n                gridView: ImageGridView,\n                position: Int,\n                urls: MutableList\u003cString\u003e\n            ) {\n               //使用XPopup展示大图\n                val urls2 = ArrayList\u003cAny\u003e()\n                urls.forEach { urls2.add(it) }\n                XPopup.Builder(context).asImageViewer(\n                    gridView.getChildAt(position) as ImageView, position, urls2,\n                    { popupView, position -\u003e\n                        popupView.updateSrcView(gridView.getChildAt(position) as ImageView)\n                    }, ImageLoader()\n                ).show()\n            }\n\n            override fun loadImage(imageView: ImageView, position: Int, url: String) {\n                //只需要实现这一个方法\n                imageView.load(url = url, isCrossFade = true, placeholder = R.drawable.ic_default_color,\n                    isForceOriginalSize = true)\n            }\n        })\n    }\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunixapp%2Fimagegridview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjunixapp%2Fimagegridview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunixapp%2Fimagegridview/lists"}