Skip to content
A zoomable ImageView for Android, can be used in AdapterView and Recyclerview. 一个可拉伸拖动的ImageView ,可在AdapterView和RecyclerView中使用。
Java
Branch: master
Clone or download

Latest commit

Latest commit ecfe272 Jul 17, 2018

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper Create repository Jul 6, 2018
sample Update sample project gradle file Jul 17, 2018
screenshot Update screenshot/screenshot_1.gif Jul 17, 2018
zoominimageview
.gitignore Create repository Jul 6, 2018
README.md Create README.md Jul 17, 2018
build.gradle Update sample project gradle file Jul 17, 2018
gradle.properties Create repository Jul 6, 2018
gradlew Create repository Jul 6, 2018
gradlew.bat Create repository Jul 6, 2018
settings.gradle Update sample project gradle file Jul 17, 2018

README.md

ZoomInImageView

A zoomable ImageView for Android, can be used in AdapterView and Recyclerview. 一个可拉伸拖动的ImageView ,可在AdapterView和RecyclerView中使用。

screenshot1~

Features

  • Zooming, using multi-touch.
  • Can be used in AdapterView and Recyclerview.
  • Easily attach and detach ImageView.
  • Anim zooming After release

Dependency

Add this in your build.gradle file

// appcompat-v7 is required
compile 'com.zolad:zoominimageview:1.0.0'

Usage

1.attach ImageView

 <com.zolad.zoominimageview.ZoomInImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />

or

ZoomInImageViewAttacher mIvAttacter = new ZoomInImageViewAttacher();
mIvAttacter.attachImageView(imageview);

or

ZoomInImageViewAttacher mIvAttacter = new ZoomInImageViewAttacher(imageview);

2.other settings

set Zoomable

mIvAttacter.setZoomable(zoomable);

detach ImageView

mIvAttacter.detach();

release anim setting

 mIvAttacter.setZoomReleaseAnimDuration(duration);
 mIvAttacter.setZoomReleaseAnimInterpolator(interpolator);

License

Copyright 2018 Zolad

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.
You can’t perform that action at this time.