ImageViewZoom

Android ImageView widget with zoom and pan capabilities

Лицензия

Лицензия

Группа

Группа

it.sephiroth.android.library.imagezoom
Идентификатор

Идентификатор

imagezoom
Последняя версия

Последняя версия

2.3.0
Дата

Дата

Тип

Тип

aar
Описание

Описание

ImageViewZoom
Android ImageView widget with zoom and pan capabilities
Ссылка на сайт

Ссылка на сайт

https://github.com/sephiroth74/ImageViewZoom
Система контроля версий

Система контроля версий

https://github.com/sephiroth74/ImageViewZoom

Скачать imagezoom

Имя Файла Размер
imagezoom-2.3.0.pom
imagezoom-2.3.0.aar 20 KB
Обзор

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/it.sephiroth.android.library.imagezoom/imagezoom/ -->
<dependency>
    <groupId>it.sephiroth.android.library.imagezoom</groupId>
    <artifactId>imagezoom</artifactId>
    <version>2.3.0</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/it.sephiroth.android.library.imagezoom/imagezoom/
implementation 'it.sephiroth.android.library.imagezoom:imagezoom:2.3.0'
// https://jarcasting.com/artifacts/it.sephiroth.android.library.imagezoom/imagezoom/
implementation ("it.sephiroth.android.library.imagezoom:imagezoom:2.3.0")
'it.sephiroth.android.library.imagezoom:imagezoom:aar:2.3.0'
<dependency org="it.sephiroth.android.library.imagezoom" name="imagezoom" rev="2.3.0">
  <artifact name="imagezoom" type="aar" />
</dependency>
@Grapes(
@Grab(group='it.sephiroth.android.library.imagezoom', module='imagezoom', version='2.3.0')
)
libraryDependencies += "it.sephiroth.android.library.imagezoom" % "imagezoom" % "2.3.0"
[it.sephiroth.android.library.imagezoom/imagezoom "2.3.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

ImageViewTouch for Android

Badge

Build Status Download

ImageViewTouch is an android ImageView widget with zoom and pan capabilities. This is an implementation of the ImageView widget used in the Gallery app of the Android opensource project.

Checkout the repository and run the ImageViewTouchTest project to see how it works. Beside the superclass setImageBitmap method it offers the following methods:

  • setImageBitmap( final Bitmap bitmap, Matrix matrix );
  • setImageBitmap( final Bitmap bitmap, Matrix matrix, float minZoom, float maxZoom );

If you want to load a new Bitmap with a particular zoom/pan state (let's say the same from another ImageView ), you can call:

Matrix matrix = mImageView1.getDisplayMatrix();
mImageView2.setImageBitmap( bitmap, matrix );

Tweaks

The initial display state can be set, using public void setDisplayType( DisplayType type ), as:

  • DisplayType.FIT_TO_SCREEN: The image loaded will always fit the current view's bounds.
  • DisplayType.NONE: The image will be presented with its current dimensions if smaller than the image bounds, otherwise it will be scaled to fit its contents inside the screen.
  • DisplayType.FIT_HEIGHT: The image loaded will always fit the height of the current view.
  • DisplayType.FIT_WIDTH: The image loaded will always fit the width of the current view.

The default display state is `DisplayState.NONE'.

##Usage (Maven) it.sephiroth.android.library.imagezoom imagezoom 2.3.0

##Usage (Gradle)

dependencies {
	compile 'it.sephiroth.android.library.imagezoom:imagezoom:+'
}

##LICENSE

This software is provided under the MIT license:
http://opensource.org/licenses/mit-license.php

##Author

Alessandro Crugnola

Версии библиотеки

Версия
2.3.0
2.2.5
2.2.4
2.2.2
2.1.1
2.1.0
2.0.3
1.0.5