Overview of Telephoto building blocks
trunkTelephoto provides building blocks for creating cohesive media experiences in Android Compose UI. It offers three primary ways to implement zoom and pan functionality:
- Zoomable Image: A drop-in replacement for the standard
Image()composable. It supports pan and zoom gestures and includes automatic sub-sampling for large images to prevent memory issues. - Modifier.zoomable(): A standalone
Modifierthat provides the gesture detection logic used byZoomableImage. This can be applied to videos or any other non-image composables to enable zoom and pan. - Zoomable Peek Overlay: A transient, overlaid zoom effect inspired by Instagram's UI patterns.