ZoomImageView is an Android ImageView with zoom functionality, all in one class.
Works great with ViewPager, example provided.
Used in Couple app.
- Multi-touch pinch zoom
- Double-tap zoom
- Smooth zooming and scrolling, using animation thread
- All in one class
- Easy to put in a scrolling parent, like the ViewPager (example provided)
This project provides two examples:
- Simple use of ImageViewZoom in OneImageSampleActivity
- Use of ImageViewZoom with ViewPager in ViewPagerSampleActivity
Android 2.2 (API 8) and newer.
This project is based on the excellent PhotoView by Chris Banes. Many thanks to Chris for writing it.
Improvements over PhotoView:
- The library has been simplified from seven files to just one.
- Fixed pinch zoom accuracy, also with multiple fingers.
- Some parts of code have been removed, rewritten and overall simplified.
Copyright 2013 TenthBit Inc.
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.