{"id":19867273,"url":"https://github.com/fython/imagegridview","last_synced_at":"2025-05-02T06:30:53.280Z","repository":{"id":79626232,"uuid":"77230161","full_name":"fython/ImageGridView","owner":"fython","description":"Help you to create a flexible image grid easily.","archived":false,"fork":false,"pushed_at":"2017-05-14T02:33:55.000Z","size":1017,"stargazers_count":48,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T23:13:55.708Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fython.png","metadata":{"files":{"readme":"README-CN.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}},"created_at":"2016-12-23T14:23:45.000Z","updated_at":"2020-12-15T03:58:31.000Z","dependencies_parsed_at":"2023-03-07T00:00:31.524Z","dependency_job_id":null,"html_url":"https://github.com/fython/ImageGridView","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fython%2FImageGridView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fython%2FImageGridView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fython%2FImageGridView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fython%2FImageGridView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fython","download_url":"https://codeload.github.com/fython/ImageGridView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251998176,"owners_count":21677937,"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-12T15:28:54.870Z","updated_at":"2025-05-02T06:30:53.274Z","avatar_url":"https://github.com/fython.png","language":"Java","funding_links":["https://paypal.me/fython"],"categories":[],"sub_categories":[],"readme":"\n## ImageGridView\n\n\u003e Help you to create a flexible image grid easily.\n\u003e\n\u003e 帮助你轻松的创建一个灵活的图片 Grid 布局\n\n\u003ca href=\"./screenshots/0.jpg\"\u003e\u003cimg src=\"./screenshots/0.jpg\" width=\"40%\"/\u003e\u003c/a\u003e\n\u003ca href=\"./screenshots/1.jpg\"\u003e\u003cimg src=\"./screenshots/1.jpg\" width=\"40%\"/\u003e\u003c/a\u003e\n\n### 如何使用？\n\n首先，引入核心库 (`:imagegridview` 模块) 到你的项目中。\n\n在依赖中加入:\n\n```gradle\ndependencies {\n    compile 'moe.feng.common.imagegridview:imagegridview:1.0'\n}\n```\n\n它只包含 ImageGridView, DefaultImageViewCreator 和 DefaultImageGridCalculator。\n\n所以你需要引入一个图像加载库，或者自己写一个。\n\n如果你想使用 Picasso，请引入 PicassoImageLoader。\n\n```gradle\ndependencies {\n    compile 'moe.feng.common.imagegridview:picassoimageloader:1.0'\n}\n```\n\n除此以外，我还写了 GlideImageLoader, FrescoImageLoader 提供给 Glide/Fresco 用户.\n\n### 基本\n\n在 XML 代码（例子）:\n\n```xml\n\u003cmoe.feng.common.imagegridview.ImageGridView\n\tandroid:layout_width=\"match_parent\"\n\tandroid:layout_height=\"wrap_content\"\n\tandroid:id=\"@+id/image_grid_view\"\n\tapp:imageLoaderClass=\"moe.feng.common.imagegridview.loader.picasso.PicassoImageLoader\"/\u003e\n```\n\n用这一句来加载图片:\n\n`mImageGridView.setImages(List\u003cImageSource\u003e list);`\n\n如果你想更换 ImageViewCreator/ImageLoader，不要忘了在设定后调用 `reload()`。\n\n\n#### 使用 Picasso / Glide\n\n只需要设定 `PicassoImageLoader` / `GlideImageLoader` 为 ImageLoader。\n\n#### 使用 FrescoImageLoader\n\n设定 `FrescoImageLoader` 为 ImageLoader，并设定 `FrescoImageViewCreator` 为 ImageViewCreator （为了让 DraweeView 代替 ImageView）。\n\n#### 定制你自己的布局排列\n\n学习 [GridLayoutManager](https://developer.android.com/reference/android/support/v7/widget/GridLayoutManager.html) 和 [GridLayoutManager.SpanSizeLookup](https://developer.android.com/reference/android/support/v7/widget/GridLayoutManager.SpanSizeLookup.html) 的文档。继承 `ImageGridCalculator` 重写一个类进行计算。\n\n### 联系我\n\nEmail: fython#163.com\n\n通过支付宝捐赠支持: 316643843#qq.com\n\n通过 Paypal 捐赠（不推荐）: https://paypal.me/fython\n\n### 协议\n\n```\nMIT License\n\nCopyright (c) 2016 Fung Go (fython)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffython%2Fimagegridview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffython%2Fimagegridview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffython%2Fimagegridview/lists"}