{"id":13604394,"url":"https://github.com/imablanco/Zoomy","last_synced_at":"2025-04-12T02:30:41.710Z","repository":{"id":41413324,"uuid":"81995571","full_name":"imablanco/Zoomy","owner":"imablanco","description":"Zoomy is an easy to use pinch-to-zoom Android library","archived":false,"fork":false,"pushed_at":"2023-03-14T08:38:18.000Z","size":17371,"stargazers_count":918,"open_issues_count":22,"forks_count":120,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-10-13T08:54:09.682Z","etag":null,"topics":["android","android-library","pinch-to-zoom","zoom","zoom-images","zoomable-images"],"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/imablanco.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":"2017-02-14T22:29:46.000Z","updated_at":"2024-08-26T04:05:04.000Z","dependencies_parsed_at":"2024-05-03T01:52:47.228Z","dependency_job_id":"13d2adcd-f95d-4707-b182-85fce43f3660","html_url":"https://github.com/imablanco/Zoomy","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/imablanco%2FZoomy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imablanco%2FZoomy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imablanco%2FZoomy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imablanco%2FZoomy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imablanco","download_url":"https://codeload.github.com/imablanco/Zoomy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223489540,"owners_count":17153779,"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","pinch-to-zoom","zoom","zoom-images","zoomable-images"],"created_at":"2024-08-01T19:00:44.944Z","updated_at":"2024-11-07T09:30:22.512Z","avatar_url":"https://github.com/imablanco.png","language":"Java","funding_links":[],"categories":["图片","Library","Java"],"sub_categories":[],"readme":"![Maven Central](https://img.shields.io/maven-central/v/io.github.imablanco/zoomy)\n\n# Zoomy\nZoomy is an easy to use pinch-to-zoom Android library\n\n![alt tag](art/zoomy.gif)\n## Installation\n\n```gradle\nimplementation 'io.github.imablanco:zoomy:{latest version}'\n```\n\n## Usage \n\nTo start using Zoomy, just register the View you want to be zoomable\n\n```java\n\nZoomy.Builder builder = new Zoomy.Builder(this).target(mZoomableView);\nbuilder.register();\n            \n```\n\nThats all. Now your views can be pinch-zoomed!\n\nViews can be unregistered for Zoomy too\n\n```java\n\nZoomy.unregister(mZoomableView');\n            \n```\n\n## Customization\n\nZoomy allows a few customizations in its behavior:\n\n+ Use ZoomyConfig to change default configuration flags\n\n```java\nZoomyConfig config = new ZoomyConfig();\nconfig.setZoomAnimationEnabled(false); //Enables zoom out animation when view is released (true by default)\nconfig.setImmersiveModeEnabled(false); //Enables entering in inmersive mode when zooming a view (true by default)          \n```\n\n+ Now set this as the default configuration across all Zoomy registered views\n```java\nZoomy.setDefaultConfig(config);           \n```\n\nZoomy builder also allows some customization\n\n+ Zoomy config flags can also be set when building Zoomy registration. \nThis flags will always override default ZoomyConfig flags.\n```java\n    Zoomy.Builder builder = new Zoomy.Builder(this)\n                    .target(mZoomableView)\n                    .enableImmersiveMode(false)\n                    .animateZooming(false);\n```\n\n+ You can add callbacks to listen for specific events. Because Zoomy works by attaching a View.OnTouchListener to the registered View,\nView.OnClickListener can not be set along with Zoomy, so a TapListener, LongPressListener and DoubleTapListener are provided to ensure the View still can listen for gestures.\nA ZoomListener is also provided if you are interested in zoom events.\n```java\n Zoomy.Builder builder = new Zoomy.Builder(this)\n                    .target(mZoomableView)\n                    .tapListener(new TapListener() {\n                        @Override\n                        public void onTap(View v) {\n                            //View tapped, do stuff\n                        }\n                    })\n                     .longPressListener(new LongPressListener() {\n                        @Override\n                        public void onLongPress(View v) {\n                            //View long pressed, do stuff\n                        }\n                    }).doubleTapListener(new DoubleTapListener() {\n                        @Override\n                        public void onDoubleTap(View v) {\n                            //View double tapped, do stuff\n                        }\n                    })\n                    .zoomListener(new ZoomListener() {\n                        @Override\n                        public void onViewStartedZooming(View view) {\n                            //View started zooming\n                        }\n\n                        @Override\n                        public void onViewEndedZooming(View view) {\n                            //View ended zooming\n                        }\n                    });        \n```\n\n+ It is possible to change the interpolator used when animating ending zoom event.\n\n```java\n   Zoomy.Builder builder = new Zoomy.Builder(this)\n                    .target(mZoomableView)\n                    .interpolator(new OvershootInterpolator());\n```\n\nLicense\n=======\n\n    Copyright 2017 Álvaro Blanco Cabrero\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimablanco%2FZoomy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimablanco%2FZoomy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimablanco%2FZoomy/lists"}