{"id":20297490,"url":"https://github.com/jsibbold/zoomage","last_synced_at":"2025-04-05T05:05:39.262Z","repository":{"id":40257429,"uuid":"51766472","full_name":"jsibbold/zoomage","owner":"jsibbold","description":"A simple pinch-to-zoom ImageView library for Android","archived":false,"fork":false,"pushed_at":"2021-10-21T20:39:39.000Z","size":6372,"stargazers_count":317,"open_issues_count":29,"forks_count":78,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-29T04:06:28.249Z","etag":null,"topics":["android","imageview","pinch-to-zoom","translatable","zoom","zoomable"],"latest_commit_sha":null,"homepage":"http://jsibbold.github.io/zoomage","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/jsibbold.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":"2016-02-15T15:54:50.000Z","updated_at":"2025-03-01T08:58:22.000Z","dependencies_parsed_at":"2022-06-27T06:03:11.297Z","dependency_job_id":null,"html_url":"https://github.com/jsibbold/zoomage","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsibbold%2Fzoomage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsibbold%2Fzoomage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsibbold%2Fzoomage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsibbold%2Fzoomage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsibbold","download_url":"https://codeload.github.com/jsibbold/zoomage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247289426,"owners_count":20914464,"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","imageview","pinch-to-zoom","translatable","zoom","zoomable"],"created_at":"2024-11-14T15:47:42.754Z","updated_at":"2025-04-05T05:05:39.244Z","avatar_url":"https://github.com/jsibbold.png","language":"Java","readme":"# zoomage\n[![Build Status](https://travis-ci.org/jsibbold/zoomage.svg?branch=master)](https://travis-ci.org/jsibbold/zoomage) [ ![Download](https://api.bintray.com/packages/jsibbold/maven/zoomage/images/download.svg) ](https://bintray.com/jsibbold/maven/zoomage/_latestVersion) \u003ca href=\"http://www.detroitlabs.com/\"\u003e\u003cimg src=\"https://img.shields.io/badge/Sponsor-Detroit%20Labs-000000.svg\" /\u003e\u003c/a\u003e\n\nA simple pinch-to-zoom ImageView library for Android with an emphasis\non a smooth and natural feel.\n\n\n\n## Gradle\n```groovy\nrepositories {\n    mavenCentral()\n}\n\ndependencies {\n    implementation 'com.jsibbold:zoomage:1.3.1'\n}\n```\n\n# Using It\n\nSimply add a ZoomageView as you would any typical ImageView in Android. The scaleType that you set on your\nZoomageView will determine the starting size and position of your ZoomageView's image. This is the inherited\nImageView.ScaleType from Android. With a ZoomageView, the fitCenter or centerInside scale types usually make\nthe most sense to use, fitCenter being Android's default scale type.\n\n```xml\n    \u003cRelativeLayout\n        xmlns:android=\"http://schemas.android.com/apk/res/android\"\n        xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\u003e\n    \n        \u003ccom.jsibbold.zoomage.ZoomageView\n            android:id=\"@+id/myZoomageView\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            android:src=\"@drawable/my_zoomable_image\"\n            app:zoomage_restrictBounds=\"false\"\n            app:zoomage_animateOnReset=\"true\"\n            app:zoomage_autoResetMode=\"UNDER\"\n            app:zoomage_autoCenter=\"true\"\n            app:zoomage_zoomable=\"true\"\n            app:zoomage_translatable=\"true\"\n            app:zoomage_minScale=\"0.6\"\n            app:zoomage_maxScale=\"8\"\n            /\u003e\n    \u003c/RelativeLayout\u003e\n```\n\nIf using a ZoomageView with a view pager, it is recommended that [ViewPager2](https://developer.android.com/jetpack/androidx/releases/viewpager2)\nis used.\n\n## XML Attributes\n\n```\nzoomage_restrictBounds=\"true|false\"\n```\nRestricts the bounds of the image so it does not wander outside the border of the ImageView when it's smaller than the frame size,\nand restricts the bounds to stop at the edges of the ImageView when the image is larger than the frame size. Default value is false.\n\n```\nzoomage_animateOnReset=\"true|false\"\n```\nImage will animate back to its starting size whenever it is reset if true, and will snap back to its starting size when false.\nDefault value is true.\n\n```\nzoomage_autoResetMode=\"UNDER|OVER|ALWAYS|NEVER\"\n```\nDetermines at what times the image will reset to its starting size. Note that UNDER, OVER, and ALWAYS all have the effect of\nresetting the image to its starting position if its size has not changed. Default value is UNDER.\n\n```\nzoomage_autoCenter=\"true|false\"\n```\nThis will cause the image to pull itself into view on-screen if it is partially off-screen. Default value is true.\n\n```\nzoomage_minScale=\"{float greater than 0}\"\n```\nThe minimum allowed scale for the image. Ideally this should be less than 1, must be greater than 0, and must\nbe less than maxScale. Default value is 0.6.\n\n```\nzoomage_maxScale=\"{float greater than 0}\"\n```\nThe maximum allowed scale for the image. Ideally this should be greater than 1, must be greater than 0, and must\nbe greater than minScale. Default value is 8.\n\n```\nzoomage_zoomable=\"true|false\"\n```\nSets whether zooming is allowed. Default value is true.\n\n```\nzoomage_translatable=\"true|false\"\n```\nSets whether translation is allowed. Default value is true.\n\n```\nzoomage_doubleTapToZoom=\"true|false\"\n```\nSets whether double tap to zoom functionality is enabled. Default is true.\n\n```\nzoomage_doubleTapToZoomScaleFactor=\"{float within bounds of min and max scale}\"\n```\nSets the scale factor for double tap to zoom functionality. Default is 3.\n\n---\n**Special thanks to \u003ca href=\"https://github.com/mchowning\"\u003e@mchowning\u003c/a\u003e for all his help**\n\n# License\n```\nCopyright 2016 Jeffrey Sibbold\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","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsibbold%2Fzoomage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsibbold%2Fzoomage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsibbold%2Fzoomage/lists"}