{"id":21942036,"url":"https://github.com/malekkamel/photoviewer","last_synced_at":"2026-03-14T05:02:48.759Z","repository":{"id":90820903,"uuid":"183931353","full_name":"MalekKamel/PhotoViewer","owner":"MalekKamel","description":null,"archived":false,"fork":false,"pushed_at":"2021-06-29T17:40:54.000Z","size":34642,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-22T18:11:42.924Z","etag":null,"topics":["android","android-library","easy-to-use","gallery","image","imageviewer","java","java-8","kotlin","kotlin-android","photos","pinch-to-zoom","swipe-to-dismiss","transition","transitions","viewer","zoom"],"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/MalekKamel.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":"2019-04-28T16:17:34.000Z","updated_at":"2021-07-28T20:03:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"363b55f2-009d-405c-b9f6-874fb04bf2c3","html_url":"https://github.com/MalekKamel/PhotoViewer","commit_stats":null,"previous_names":["malekkamel/photoviewer"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MalekKamel%2FPhotoViewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MalekKamel%2FPhotoViewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MalekKamel%2FPhotoViewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MalekKamel%2FPhotoViewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MalekKamel","download_url":"https://codeload.github.com/MalekKamel/PhotoViewer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250296174,"owners_count":21407037,"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","android-library","easy-to-use","gallery","image","imageviewer","java","java-8","kotlin","kotlin-android","photos","pinch-to-zoom","swipe-to-dismiss","transition","transitions","viewer","zoom"],"created_at":"2024-11-29T03:16:16.165Z","updated_at":"2026-03-14T05:02:43.724Z","avatar_url":"https://github.com/MalekKamel.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# PhotoViewer\nSimple and customizable image viewer with \"swipe to dismiss\" and \"pinch to zoom\" .\nCompatible with any image processing library such as `Glide`, `Picasso` etc.\nBased on [PhotoView](https://github.com/chrisbanes/PhotoView) by [chrisbanes](https://github.com/chrisbanes).\n\n[![](https://jitpack.io/v/ShabanKamell/PhotoViewer.svg)](https://jitpack.io/#ShabanKamell/PhotoViewer)\n\n\n![alt tag](https://github.com/ShabanKamell/PhotoViewer/blob/master/blob/master/raw/demo.gif?raw=true)\n\n## Install\nAdd this to the **project `build.gradle`** file:\n```gradle\nallprojects {\n    repositories {\n        ...\n        maven { url \"https://jitpack.io\" }\n    }\n}\n```\n\nAnd add to the **module `build.gradle`** file:\n```gradle\ndependencies {\n\t        implementation 'com.github.ShabanKamell:PhotoViewer:1.3.0'\n\t}\n```\n\n## Simple Usage\n```java\n  PhotoViewer.build(this, Data.urls(), this::loadImage).show();\n\n  private void loadImage(\n            @Nullable String url,\n            @NonNull ImageView imageView,\n            int index,\n            @NonNull ProgressBar progressBar\n    ){\n      Picasso.get().load(url).into(imageView);\n      // Or Glide...etc\n      // GlideApp.with(context)\n      //   .load(url != null ? url : \"\")\n      //   .into(this)\n    }\n```\n\n## Customization\n```java\n     builder.setPhotoMargin(this, R.dimen.image_margin)\n                .startAtIndex(startIndex)\n                .setContainerPadding(this, R.dimen.image_margin)\n                .setCanSwipeToDismiss(Option.SWIPE_TO_DISMISS.value)\n                .setZoomable(Option.ZOOMING.value)\n                .setOverlayView(overlay)\n                .setOnPhotoSelectedListener(getImageChangeListener())\n                .setBackgroundColor(getRandomColor())\n                .setOnLongClickListener(v -\u003e {\n                    Log.d(\"PhotoViewer\", \"long clicked!\");\n                    return false;\n                })\n\t\t.setOnDismissListener(\n                        () -\u003e Log.d(\"PhotoViewer\", \"dismissed\")\n                );\n```\n\n### See 'app' module for the full code.\n\n### License\n\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\n### Credit\n [FrescoImageViewer](https://github.com/stfalcon-studio/FrescoImageViewer).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalekkamel%2Fphotoviewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalekkamel%2Fphotoviewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalekkamel%2Fphotoviewer/lists"}