com.github.madrapps:eyedropper

An android library to pick colors from any image loaded in an ImageView or anything drawn on a Custom View

Лицензия

Лицензия

Группа

Группа

com.github.madrapps
Идентификатор

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

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

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

1.1.3
Дата

Дата

Тип

Тип

aar
Описание

Описание

com.github.madrapps:eyedropper
An android library to pick colors from any image loaded in an ImageView or anything drawn on a Custom View
Ссылка на сайт

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

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

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

https://github.com/Madrapps/EyeDropper

Скачать eyedropper

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

<!-- https://jarcasting.com/artifacts/com.github.madrapps/eyedropper/ -->
<dependency>
    <groupId>com.github.madrapps</groupId>
    <artifactId>eyedropper</artifactId>
    <version>1.1.3</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.madrapps/eyedropper/
implementation 'com.github.madrapps:eyedropper:1.1.3'
// https://jarcasting.com/artifacts/com.github.madrapps/eyedropper/
implementation ("com.github.madrapps:eyedropper:1.1.3")
'com.github.madrapps:eyedropper:aar:1.1.3'
<dependency org="com.github.madrapps" name="eyedropper" rev="1.1.3">
  <artifact name="eyedropper" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.github.madrapps', module='eyedropper', version='1.1.3')
)
libraryDependencies += "com.github.madrapps" % "eyedropper" % "1.1.3"
[com.github.madrapps/eyedropper "1.1.3"]

Зависимости

runtime (2)

Идентификатор библиотеки Тип Версия
com.android.support » support-annotations jar 25.3.1
org.jetbrains.kotlin : kotlin-stdlib-jdk7 jar 1.3.31

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12

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

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

EyeDropper

Build Status Download

An android library to pick colors from any image loaded in an ImageView or anything drawn on a Custom View

preview

Download

repositories {
  jcenter() // or mavenCentral()
}

dependencies {
  compile 'com.github.madrapps:eyedropper:1.1.0'
}

Usage

To pick color from any view (ImageView or Custom View) in your layout add the following to your code:

final View targetView = findViewById(R.id.targerView); // Any view from which you want to pick color
new EyeDropper(targetView, new ColorSelectionListener() {
  @Override
  public void onColorSelected(@ColorInt int color) {
    // color is the color selected when you touch the targetView
    (findViewById(R.id.colorSlot)).setBackgroundColor(color);
  }
});

License

EyeDropper by Madrapps is licensed under a Apache License 2.0.

com.github.madrapps

Madrapps

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

Версия
1.1.3
1.1.0
1.0.1