Simple Android ImageView that enables dragging and zooming. Compatible with API 7 (Android 2.1).
Please check out the example project.
If you need more technical information, you can refer to the javadoc I wrote in the ZoomableImageView class.
Since ZoomableImageView is an apklib, you have to download it and import the zoomableimageview_library folder in your Eclipse.
Then you need to go to Properties > Android in your project and add ZoomableImageView as a Library.
<dependency>
<groupId>com.github.jeremiemartinez</groupId>
<artifactId>zoomableimageview</artifactId>
<type>apklib</type>
<version>1.0</version>
</dependency>
<com.github.jeremiemartinez.zoomable.ZoomableImageView
android:id="@+id/imageView"
android:layout_height="match_parent"
android:layout_width="match_parent" />
- Jeremie Martinez - [email protected]
Inspired by Mike Ortiz TouchImageView
Copyright 2012-2013 - Jeremie Martinez ([email protected])
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.