Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/martinwithaar/pinchtozoom
Android's ImageView pinch-to-zoom made easy
https://github.com/martinwithaar/pinchtozoom
android android-app android-library imageview pinch-to-zoom
Last synced: 3 months ago
JSON representation
Android's ImageView pinch-to-zoom made easy
- Host: GitHub
- URL: https://github.com/martinwithaar/pinchtozoom
- Owner: martinwithaar
- License: mit
- Created: 2017-04-07T21:23:41.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-06T15:22:05.000Z (over 5 years ago)
- Last Synced: 2024-10-15T16:03:25.296Z (4 months ago)
- Topics: android, android-app, android-library, imageview, pinch-to-zoom
- Language: Java
- Size: 1.01 MB
- Stars: 110
- Watchers: 5
- Forks: 27
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Maven Central](https://img.shields.io/badge/Maven%20Central-0.1-blue.svg)](https://mvnrepository.com/artifact/com.bogdwellers/pinchtozoom/0.1)
[![Android Arsenal](https://img.shields.io/badge/Android_Arsenal-PinchToZoom-brightgreen.svg)](https://android-arsenal.com/details/1/5575)# PinchToZoom
Android's ImageView pinch-to-zoom made easy## Get it
Add this line to your *build.gradle*'s dependencies:
```
compile 'com.bogdwellers:pinchtozoom:0.1'
```## Overview
PinchToZoom for Android is a simple yet feature complete library for adding pinch-to-zoom functionality to an *ImageView*. It has sleek easing animations that make it stand out in quality and ease of use.### Features
* Pinch-to-zoom
* Double-tap to quickly zoom-in and out
* Drag while zoomed in
* Animated drag & zoom release easing
* Does not extend the *ImageView* class so is usable with custom *ImageView* implementations
* Fully customizable## Integrate
Adding pinch-to-zoom functionality to your *ImageView* is easy as this:
```java
ImageView imageView = (ImageView) view.findViewById(R.id.image);
imageView.setOnTouchListener(new ImageMatrixTouchHandler(view.getContext()));
```## Customization
The *ImageMatrixTouchHandler* class has multiple getter/setter methods that allow for changing the behavior and animation settings.### Javadoc
Consult the Javadoc at https://martinwithaar.github.io/PinchToZoom/