ComposeZoomableImage
Jetpack Compose Zoomable Image Android Library
Easy zoom in with drag support for Jetpack Compose
Demo
Setup
Add Jitpack
maven { url 'https://jitpack.io' }
Add the dependency
implementation 'com.github.umutsoysl:ComposeZoomableImage:0.1.0'
Usage
// image url - with coil library
val painter = rememberImagePainter("https://imgrosetta.mynet.com.tr/file/12220872/12220872-1200x824.jpg")
// resource drawable
val painterR = painterResource(id = R.drawable.compose)
ZoomableImage(
painter = painter,
isRotation = false,
modifier = Modifier.fillMaxWidth().size(250.dp)
)
License
Copyright 2021 Umut Soysal.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.