# natario1/ZoomLayout

2D zoom and pan behavior for View hierarchies, images, video streams, and much more, written in Kotlin for Android.

Repository: https://github.com/natario1/ZoomLayout
Canonical: https://ross.abutalabs.com/products/zoomlayout
Homepage: https://natario1.github.io/ZoomLayout
Language: Kotlin
License: Apache-2.0
License Family: permissive
Topics: android, android-library, zoom-images, zooming-panning-moving, pinch-to-zoom, kotlin, kotlin-library, surface, opengl, opengl-es, 2d, zoom-engine, pan, touch-events, imageview
Last push: 2023-01-30T11:04:20+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3262, "days_push": 1311, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1098, forks 149 (observed 2026-08-28T04:03:34.930162+00:00)

## What it is
A Kotlin Android library providing 2D zoom and pan components for View hierarchies, images, and video streams, built around a flexible Matrix-based ZoomEngine. It includes ZoomLayout, ZoomImageView, and ZoomSurfaceView with OpenGL rendering support.

## Use cases
- add pinch-to-zoom to an Android ImageView
- make a View hierarchy pannable and zoomable with touch gestures
- zoom and pan a video stream or camera preview surface
- programmatically animate zoom and pan on Android
- build an interactive map or floorplan viewer on Android
- support clickable views inside a zoomable container

## When to choose
- you need lightweight, dependency-free zoom/pan on Android down to API 16
- you want both touch-driven and programmatic zoom control with animation
- you need to zoom arbitrary View hierarchies, not just images
- you want OpenGL-accelerated zooming of SurfaceView content like video

## When to avoid
- you target platforms other than Android
- you need 3D zoom or complex gesture recognition beyond pan/zoom
- you need a library under active development with frequent updates
- you want Jetpack Compose-native zoom components

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, animation, graphics
- domain: mobile-development, android-tools, graphics
- platform: jvm
- tags: pinch-to-zoom, pan, imageview, surfaceview, opengl, touch-gestures, zoom-engine, no-dependencies, android, mobile

## Member repositories
- natario1/ZoomLayout (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:34.930162+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:46:19.808254+00:00, confidence not recorded.
  - readme: https://github.com/natario1/ZoomLayout (fetched 2026-08-28T04:03:34.930162+00:00, sha e7d27b3e3497)
  - homepage: https://natario1.github.io/ZoomLayout (fetched 2026-08-29T12:49:29.067372+00:00, sha a2b58a664f25)
- Data as of 2026-08-30T08:39:29.467469+00:00.
