{"id":13428737,"url":"https://github.com/natario1/ZoomLayout","last_synced_at":"2025-03-16T01:33:37.772Z","repository":{"id":38418572,"uuid":"105020875","full_name":"natario1/ZoomLayout","owner":"natario1","description":"2D zoom and pan behavior for View hierarchies, images, video streams, and much more, written in Kotlin for Android.","archived":false,"fork":false,"pushed_at":"2023-01-30T11:04:20.000Z","size":46477,"stargazers_count":1065,"open_issues_count":27,"forks_count":149,"subscribers_count":26,"default_branch":"main","last_synced_at":"2025-03-09T22:27:40.291Z","etag":null,"topics":["2d","android","android-library","imageview","kotlin","kotlin-library","opengl","opengl-es","pan","pinch-to-zoom","surface","touch-events","zoom-engine","zoom-images","zooming-panning-moving"],"latest_commit_sha":null,"homepage":"https://natario1.github.io/ZoomLayout","language":"Kotlin","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/natario1.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":["natario1","markusressel"]}},"created_at":"2017-09-27T13:21:11.000Z","updated_at":"2025-02-19T08:44:57.000Z","dependencies_parsed_at":"2024-01-14T02:37:37.002Z","dependency_job_id":"99f3c480-c0ae-4121-92ee-28ac120b1bed","html_url":"https://github.com/natario1/ZoomLayout","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natario1%2FZoomLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natario1%2FZoomLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natario1%2FZoomLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natario1%2FZoomLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/natario1","download_url":"https://codeload.github.com/natario1/ZoomLayout/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243814905,"owners_count":20352037,"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":["2d","android","android-library","imageview","kotlin","kotlin-library","opengl","opengl-es","pan","pinch-to-zoom","surface","touch-events","zoom-engine","zoom-images","zooming-panning-moving"],"created_at":"2024-07-31T01:01:03.865Z","updated_at":"2025-03-16T01:33:37.764Z","avatar_url":"https://github.com/natario1.png","language":"Kotlin","readme":"[![Build Status](https://github.com/natario1/ZoomLayout/workflows/Build/badge.svg?event=push)](https://github.com/natario1/ZoomLayout/actions)\n[![Release](https://img.shields.io/github/release/natario1/ZoomLayout.svg)](https://github.com/natario1/ZoomLayout/releases)\n[![Issues](https://img.shields.io/github/issues-raw/natario1/ZoomLayout.svg)](https://github.com/natario1/ZoomLayout/issues)\n\n\u0026#10240;  \u003c!-- Hack to add whitespace --\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/static/banner.png\" width=\"100%\"\u003e\n\u003c/p\u003e\n\n*Need support, consulting, or have any other business-related question? Feel free to \u003ca href=\"mailto:mat.iavarone@gmail.com\"\u003eget in touch\u003c/a\u003e.*\n\n*Like the project, make profit from it, or simply want to thank back? Please consider [sponsoring](https://github.com/sponsors/natario1)!*\n\n# ZoomLayout\n\nA collection of flexible Android components that support zooming and panning of View hierarchies, \nimages, video streams, and much more - either programmatically or through touch events.\n\n```kotlin\nimplementation(\"com.otaliastudios:zoomlayout:1.9.0\")\n```\n\n- `ZoomLayout`: a container that supports 2D pan and zoom to a View hierarchy, even supporting clicks [[docs]](https://natario1.github.io/ZoomLayout/docs/zoom-layout)\n- `ZoomImageView`: (yet another) ImageView that supports 2D pan and zoom [[docs]](https://natario1.github.io/ZoomLayout/docs/zoom-image)\n- `ZoomSurfaceView`: A SurfaceView that supports 2D pan and zoom with OpenGL rendering [[docs]](https://natario1.github.io/ZoomLayout/docs/zoom-surface)\n- Powerful zoom APIs [[docs]](https://natario1.github.io/ZoomLayout/docs/zoom-apis)\n- Powerful pan APIs [[docs]](https://natario1.github.io/ZoomLayout/docs/pan-apis)\n- Lightweight, no dependencies\n- Works down to API 16\n\nIn fact, `ZoomLayout`, `ZoomImageView` and `ZoomSurfaceView` are just very simple implementations of the\ninternal `ZoomEngine` [[docs]](https://natario1.github.io/ZoomLayout/docs/zoom-engine). The zoom engine lets you animate everything through\nconstant updates, as long as you feed it with touch events, with a `Matrix`-based mechanism\nthat makes it very flexible.\n\n\u0026#10240;  \u003c!-- Hack to add whitespace --\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/static/gif-1.gif\" width=\"250\" hspace=\"15\"\u003e\u003cimg src=\"docs/static/gif-2.gif\" width=\"250\" hspace=\"15\"\u003e\u003cimg src=\"docs/static/gif-3.gif\" width=\"250\" hspace=\"15\"\u003e\n\u003c/p\u003e\n\n\u0026#10240;  \u003c!-- Hack to add whitespace --\u003e\n\n\n## Support\n\nIf you like the project, make profit from it, or simply want to thank back, please consider \n[supporting it](https://github.com/natario1/ZoomLayout/issues/125) through the GitHub Sponsors program! \nYou can have your company logo here, get private support hours or simply help me push this forward. \n\nFeel free to \u003ca href=\"mailto:mat.iavarone@gmail.com\"\u003econtact me\u003c/a\u003e for support, consulting or any \nother business-related question.\n\n## Setup\n\nPlease read the [official website](https://natario1.github.io/ZoomLayout) for setup instructions and documentation.\nYou might also be interested in our [changelog](https://natario1.github.io/ZoomLayout/about/changelog). \n\n```xml\n\u003ccom.otaliastudios.zoom.ZoomLayout\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:scrollbars=\"vertical|horizontal\"   \n    app:transformation=\"centerInside\"                                \n    app:transformationGravity=\"auto\"\n    app:alignment=\"center\"\n    app:overScrollHorizontal=\"true\"\n    app:overScrollVertical=\"true\"\n    app:overPinchable=\"true\"\n    app:horizontalPanEnabled=\"true\"\n    app:verticalPanEnabled=\"true\"\n    app:zoomEnabled=\"true\"\n    app:flingEnabled=\"true\"\n    app:scrollEnabled=\"true\"\n    app:oneFingerScrollEnabled=\"true\"\n    app:twoFingersScrollEnabled=\"true\"\n    app:threeFingersScrollEnabled=\"true\"\n    app:minZoom=\"0.7\"\n    app:minZoomType=\"zoom\"\n    app:maxZoom=\"2.5\"\n    app:maxZoomType=\"zoom\"\n    app:animationDuration=\"280\"\n    app:hasClickableChildren=\"false\"\u003e\n\n    \u003c!-- Content here. --\u003e\n\n\u003c/com.otaliastudios.zoom.ZoomLayout\u003e\n```\n","funding_links":["https://github.com/sponsors/natario1","https://github.com/sponsors/markusressel","https://github.com/sponsors/natario1)!"],"categories":["Libraries"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatario1%2FZoomLayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnatario1%2FZoomLayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatario1%2FZoomLayout/lists"}