Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ ColorArt is a library that uses an image to create a themed image/text display.

Add ColorArt as a dependency to your build.gradle file:

```
```groovy
compile 'org.michaelevans.colorart:library:0.0.3'
```

Then you can use the library like this:

```
```java
// get a bitmap and analyze it
Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.album);
ColorArt colorArt = new ColorArt(bitmap);
Expand All @@ -28,12 +28,12 @@ colorArt.getDetailColor()

###FadingImageView

```
```java
mFadingImageView.setBackgroundColor(colorArt.getBackgroundColor(), FadingImageView.FadeSide.LEFT);
```
This will set the fading edge on the left side, with that background color. You can also enable/disable the fade with:

```
```java
mImageView.setFadeEnabled(true/false);
```

Expand All @@ -47,7 +47,7 @@ mImageView.setFadeEnabled(true/false);
##License

```
Copyright 2015 Michael Evans
Copyright 2016 Michael Evans

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down