{"id":13643948,"url":"https://github.com/lawloretienne/ImageGallery","last_synced_at":"2025-04-21T06:32:06.171Z","repository":{"id":36818759,"uuid":"41125639","full_name":"lawloretienne/ImageGallery","owner":"lawloretienne","description":"A gallery used to host an array of images","archived":false,"fork":false,"pushed_at":"2020-09-02T05:31:44.000Z","size":16052,"stargazers_count":646,"open_issues_count":11,"forks_count":116,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-04-04T09:44:36.492Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lawloretienne.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-21T00:45:32.000Z","updated_at":"2025-03-27T19:39:28.000Z","dependencies_parsed_at":"2022-07-20T10:47:16.106Z","dependency_job_id":null,"html_url":"https://github.com/lawloretienne/ImageGallery","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/lawloretienne%2FImageGallery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lawloretienne%2FImageGallery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lawloretienne%2FImageGallery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lawloretienne%2FImageGallery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lawloretienne","download_url":"https://codeload.github.com/lawloretienne/ImageGallery/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250008230,"owners_count":21359951,"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.241Z","updated_at":"2025-04-21T06:32:01.154Z","avatar_url":"https://github.com/lawloretienne.png","language":"Java","funding_links":[],"categories":["图片","Java","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"# ImageGallery [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-ImageGallery-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/2364)\n\n![ImageGallery](https://raw.githubusercontent.com/lawloretienne/ImageGallery/master/images/ic_launcher.png)\n\n## Overview\n\nA gallery used to host an array of images\n\nYou can add one or more images to the gallery\n\nSupport for using \u003ca href=\"https://developer.android.com/intl/zh-cn/reference/android/support/v7/graphics/Palette.html\"\u003ePalette\u003c/a\u003e to set the background color\n\nPalette color types\n - VIBRANT\n - LIGHT_VIBRANT\n - DARK_VIBRANT\n - MUTED\n - LIGHT_MUTED\n - DARK_MUTED\n\nSupports pinch-to-zoom on the images\n\n## Screenshots\n\nImageGalleryActivity           |  FullScreenImageGallery\n:-------------------------:|:-------------------------:\n![](https://raw.githubusercontent.com/lawloretienne/ImageGallery/master/images/ImageGallery_Screenshot_9.png)  |  ![](https://raw.githubusercontent.com/lawloretienne/ImageGallery/master/images/ImageGallery_Screenshot_10.png)\n\n## Setup\n\n#### Gradle\n\n`compile 'com.github.lawloretienne:imagegallery:0.1.0'`\n\n#### Maven\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.lawloretienne\u003c/groupId\u003e\n    \u003cartifactId\u003eimagegallery\u003c/artifactId\u003e\n    \u003cversion\u003e0.1.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Sample Usage\n\n```java\nIntent intent = new Intent(MainActivity.this, ImageGalleryActivity.class);\n\nString[] images = getResources().getStringArray(R.array.unsplash_images);\n        Bundle bundle = new Bundle();\n        bundle.putStringArrayList(ImageGalleryActivity.KEY_IMAGES, new ArrayList\u003c\u003e(Arrays.asList(images)));\n        bundle.putString(ImageGalleryActivity.KEY_TITLE, \"Unsplash Images\");\n        intent.putExtras(bundle);\n\nstartActivity(intent);\n```\n\n\nIf you want to use the ImageGalleryActivity you must declare the following in your AndroidManifest.xml .\n\n```xml\n\n\u003c!-- Declare this activity in your AndroidManfest.xml --\u003e\n\u003cactivity\n    android:name=\"com.etiennelawlor.imagegallery.library.activities.ImageGalleryActivity\"\n    android:configChanges=\"orientation|keyboardHidden|screenSize\"\n    android:label=\"\"\n    android:theme=\"@style/ImageGalleryTheme\" /\u003e\n```\n\nAlternatively, you can now use the ImageGalleryFragment and host the fragment in your own Activity.\n\n### Important Note\nYou must now set up image loading by implementing these interfaces `ImageGalleryAdapter.ImageThumbnailLoader` and `FullScreenImageGalleryAdapter.FullScreenImageLoader`. See https://github.com/lawloretienne/ImageGallery/blob/master/sample/src/main/java/com/etiennelawlor/imagegallery/activities/MainActivity.java .\n\n\n## Developed By\n\n* Etienne Lawlor \n \n\u0026nbsp;\u0026nbsp;\u0026nbsp;**Email** - lawloretienne@gmail.com\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;**Website** - https://medium.com/@etiennelawlor\n\n## Projects/Apps using ImageGallery\n\n- \u003ca href=\"https://play.google.com/store/apps/details?id=com.biggu.shopsavvy\u0026hl=en\"\u003eShopSavvy\u003c/a\u003e\n\nFeel free to contact me to add yours to this list.\n\n## License\n\n```\nCopyright 2015 Etienne Lawlor\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flawloretienne%2FImageGallery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flawloretienne%2FImageGallery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flawloretienne%2FImageGallery/lists"}