{"id":20792414,"url":"https://github.com/mzelzoghbi/zgallery","last_synced_at":"2025-06-23T08:39:01.463Z","repository":{"id":54865749,"uuid":"65498572","full_name":"mzelzoghbi/ZGallery","owner":"mzelzoghbi","description":"Android 3rd party library to make implementing galleries more easier","archived":false,"fork":false,"pushed_at":"2023-08-11T08:40:00.000Z","size":8256,"stargazers_count":163,"open_issues_count":31,"forks_count":64,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-31T08:51:12.505Z","etag":null,"topics":["android","builder","galleries","gallery","library"],"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/mzelzoghbi.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}},"created_at":"2016-08-11T20:12:55.000Z","updated_at":"2024-11-01T20:12:26.000Z","dependencies_parsed_at":"2024-11-17T16:03:01.621Z","dependency_job_id":null,"html_url":"https://github.com/mzelzoghbi/ZGallery","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzelzoghbi%2FZGallery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzelzoghbi%2FZGallery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzelzoghbi%2FZGallery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzelzoghbi%2FZGallery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mzelzoghbi","download_url":"https://codeload.github.com/mzelzoghbi/ZGallery/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252854336,"owners_count":21814669,"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","builder","galleries","gallery","library"],"created_at":"2024-11-17T15:50:36.706Z","updated_at":"2025-05-07T09:46:50.849Z","avatar_url":"https://github.com/mzelzoghbi.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ZGallery\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-ZGallery-brightgreen.svg?style=plastic)]()\n[![](https://jitpack.io/v/mzelzoghbi/ZGallery.svg)](https://jitpack.io/#mzelzoghbi/ZGallery)\n\nAndroid 3rd party library to make implementing galleries more easier\n\nI found myself writing the same Gallery Feature in many apps with the same code, so i made this library to make developers life more easier and prevent wasting their time.\n\nYou can checkout the sample app, or view the app directly on GooglePlayStore\n\n\u003ca href='https://play.google.com/store/apps/details?id=com.mzelzoghbi.zgallery'\u003e\u003cimg alt='Get it on Google Play' src='https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png' width=\"300px\"/\u003e\u003c/a\u003e\n\n\nIt includes two activities : \n* For displaying a list of images in `GridLayout` using `RecyclerView`.\n* For displaying images in a `ViewPager` with a nice scroll `HorizontalList` and nice zooming gestures **Thanks for [PhotoView Library](https://github.com/chrisbanes/PhotoView)** \n\n## Screenshots\n\u003ca href=\"https://youtu.be/eJ70DDmr2FE\"\u003e\u003cimg src=\"https://github.com/mzelzoghbi/ZGallery/blob/master/ZGallery_lib_sample_preview.gif\" alt=\"\" width=\"200px\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/mzelzoghbi/ZGallery/blob/master/screenshot_grid.png\"\u003e\u003cimg src=\"https://github.com/mzelzoghbi/ZGallery/blob/master/screenshot_grid.png\" alt=\"\" width=\"200px\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/mzelzoghbi/ZGallery/blob/master/screenshot_gallery.png\"\u003e\u003cimg src=\"https://github.com/mzelzoghbi/ZGallery/blob/master/screenshot_gallery.png\" alt=\"\" width=\"200px\"\u003e\u003c/a\u003e\n\n\n\n## How it works\n### Grid List Builder\n\nSimply with a very nice builder you will find it done.\n```java\nZGrid.with(this, /*your string arraylist of image urls*/)\n                .setToolbarColorResId(R.color.colorPrimary) // toolbar color\n                .setTitle(\"Zak Gallery\") // toolbar title\n                .setToolbarTitleColor(ZColor.WHITE) // toolbar title color\n                .setSpanCount(3) // colums count\n                .setGridImgPlaceHolder(R.color.colorPrimary) // color placeholder for the grid image until it loads\n                .show();\n```\n\n\n### Gallery Builder\n\n```java\nZGallery.with(this, /*your string arraylist of image urls*/)\n                .setToolbarTitleColor(ZColor.WHITE) // toolbar title color\n                .setGalleryBackgroundColor(ZColor.WHITE) // activity background color\n                .setToolbarColorResId(R.color.colorPrimary) // toolbar color\n                .setTitle(\"Zak Gallery\") // toolbar title\n                .show();\n```\n                \n## Installation\n\nAdd this to your **root** build.gradle file (not your module build.gradle file) :\n```java\nallprojects {\n  repositories {\n    ...\n    maven { url \"https://jitpack.io\" }\n  }\n}\n```\n\nAdd this to your module `build.gradle` file:\n```java\ndependencies {\n  ...\n    compile 'com.github.mzelzoghbi:zgallery:0.3'\n}\n```\n\n# License\n\n\u003e Copyright 2016 mzelzoghbi\n\n\u003e Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\n\n\u003e http://www.apache.org/licenses/LICENSE-2.0\n\n\u003e Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmzelzoghbi%2Fzgallery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmzelzoghbi%2Fzgallery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmzelzoghbi%2Fzgallery/lists"}