com.github.madrapps:eyedropper

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

License

License

GroupId

GroupId

com.github.madrapps
ArtifactId

ArtifactId

eyedropper
Last Version

Last Version

1.1.3
Release Date

Release Date

Type

Type

aar
Description

Description

com.github.madrapps:eyedropper
An android library to pick colors from any image loaded in an ImageView or anything drawn on a Custom View
Project URL

Project URL

https://github.com/Madrapps/EyeDropper
Source Code Management

Source Code Management

https://github.com/Madrapps/EyeDropper

Download eyedropper

How to add to project

<!-- 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"]

Dependencies

runtime (2)

Group / Artifact Type Version
com.android.support » support-annotations jar 25.3.1
org.jetbrains.kotlin : kotlin-stdlib-jdk7 jar 1.3.31

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

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

Versions

Version
1.1.3
1.1.0
1.0.1