diff --git a/README.md b/README.md
index 19a574a..bf5c0ff 100644
--- a/README.md
+++ b/README.md
@@ -30,7 +30,7 @@ You don't have to worry about android including the file twice in your apk. Andr
```groovy
dependencies {
- compile 'net.steamcrafted:materialiconlib:1.0.8'
+ compile 'net.steamcrafted:materialiconlib:1.0.9'
}
```
diff --git a/app/app.iml b/app/app.iml
index ee23b35..0bb5941 100644
--- a/app/app.iml
+++ b/app/app.iml
@@ -72,6 +72,7 @@
+
diff --git a/app/build.gradle b/app/build.gradle
index f31565c..9de40f1 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -19,6 +19,12 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
+
+
+
+ lintOptions {
+ abortOnError false
+ }
}
dependencies {
@@ -26,5 +32,5 @@ dependencies {
compile 'com.android.support:appcompat-v7:22.2.0'
compile 'de.hdodenhof:circleimageview:2.0.0'
/*compile project(':materialiconlib')*/
- compile 'net.steamcrafted:materialiconlib:1.0.8'
+ compile project(":materialiconlib")
}
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index 735e6fd..ebb6dbe 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -73,13 +73,31 @@
-
+
+
+
+
+
+
diff --git a/build.gradle b/build.gradle
index 9405f3f..00100a9 100644
--- a/build.gradle
+++ b/build.gradle
@@ -16,4 +16,4 @@ allprojects {
repositories {
jcenter()
}
-}
+}
\ No newline at end of file
diff --git a/materialiconlib/build.gradle b/materialiconlib/build.gradle
index f6a88a0..ce683bb 100644
--- a/materialiconlib/build.gradle
+++ b/materialiconlib/build.gradle
@@ -4,7 +4,7 @@ apply plugin: 'com.android.library'
ext {
PUBLISH_GROUP_ID = 'net.steamcrafted'
PUBLISH_ARTIFACT_ID = 'materialiconlib'
- PUBLISH_VERSION = '1.0.8'
+ PUBLISH_VERSION = '1.0.9'
}
android {
diff --git a/materialiconlib/src/main/java/net/steamcrafted/materialiconlib/MaterialDrawableBuilder.java b/materialiconlib/src/main/java/net/steamcrafted/materialiconlib/MaterialDrawableBuilder.java
index 4b0419e..3ba4f6c 100644
--- a/materialiconlib/src/main/java/net/steamcrafted/materialiconlib/MaterialDrawableBuilder.java
+++ b/materialiconlib/src/main/java/net/steamcrafted/materialiconlib/MaterialDrawableBuilder.java
@@ -128,9 +128,7 @@ public MaterialDrawableBuilder setSizePx(int size) {
*/
public MaterialDrawableBuilder setColor(int color) {
paint.setColor(color);
- if(Color.alpha(color) != 255){
- paint.setAlpha(Color.alpha(color));
- }
+ setAlpha(Color.alpha(color));
return this;
}
@@ -262,6 +260,7 @@ public void draw(Canvas canvas) {
String textValue = MaterialIconUtils.getIconString(icon.ordinal());
paint.getTextBounds(textValue, 0, 1, mCachedRect);
float textBottom = (getBounds().height() - mCachedRect.height()) / 2f + mCachedRect.height() - mCachedRect.bottom;
+
canvas.drawText(textValue, getBounds().width() / 2f, textBottom, paint);
}