From aca71a22dad87c87fd29b2ae6dc9b33ca855e9b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=94=E7=89=A9=E7=BA=BF?= Date: Thu, 20 Nov 2014 08:37:46 +0800 Subject: [PATCH] 1.4.2 release --- MaterialEditText.iml | 2 +- README.md | 8 ++++---- gradle.properties | 4 ++-- library/library.iml | 4 ++-- .../materialedittext/MaterialAutoCompleteTextView.java | 4 ++-- .../rengwuxian/materialedittext/MaterialEditText.java | 2 +- sample/build.gradle | 4 ++-- sample/sample.iml | 10 +++++----- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/MaterialEditText.iml b/MaterialEditText.iml index 00496f73..d61d9694 100644 --- a/MaterialEditText.iml +++ b/MaterialEditText.iml @@ -1,5 +1,5 @@ - + diff --git a/README.md b/README.md index c29fc1bf..ca30bcf1 100644 --- a/README.md +++ b/README.md @@ -50,17 +50,17 @@ AppCompat v21 makes it easy to use Material Design EditText in our apps, but it' ## Sample -[MaterialEditText-1.4.0-sample.apk](https://github.com/rengwuxian/MaterialEditText/releases/download/1.4.0/MaterialEditText-1.4.0-sample.apk) +[MaterialEditText-1.4.2-sample.apk](https://github.com/rengwuxian/MaterialEditText/releases/download/1.4.2/MaterialEditText-1.4.2-sample.apk) ## Download Eclipse: -[MaterialEditText-1.4.0.aar](https://github.com/rengwuxian/MaterialEditText/releases/download/1.4.0/MaterialEditText-1.4.0.aar) +[MaterialEditText-1.4.2.aar](https://github.com/rengwuxian/MaterialEditText/releases/download/1.4.2/MaterialEditText-1.4.2.aar) gradle: ```groovy -compile 'com.rengwuxian.materialedittext:library:1.4.0' +compile 'com.rengwuxian.materialedittext:library:1.4.2' ``` Maven: @@ -68,7 +68,7 @@ Maven: com.rengwuxian.materialedittext library - 1.4.0 + 1.4.2 aar ``` diff --git a/gradle.properties b/gradle.properties index ac3870f8..09db00f3 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ -VERSION_NAME=1.4.0 -VERSION_CODE=18 +VERSION_NAME=1.4.2 +VERSION_CODE=22 GROUP=com.rengwuxian.materialedittext POM_DESCRIPTION=Android EditText in Material Design diff --git a/library/library.iml b/library/library.iml index 2588c6b1..f1bf6431 100644 --- a/library/library.iml +++ b/library/library.iml @@ -1,5 +1,5 @@ - + @@ -86,8 +86,8 @@ - + diff --git a/library/src/main/java/com/rengwuxian/materialedittext/MaterialAutoCompleteTextView.java b/library/src/main/java/com/rengwuxian/materialedittext/MaterialAutoCompleteTextView.java index 106767a5..782beb38 100644 --- a/library/src/main/java/com/rengwuxian/materialedittext/MaterialAutoCompleteTextView.java +++ b/library/src/main/java/com/rengwuxian/materialedittext/MaterialAutoCompleteTextView.java @@ -496,7 +496,7 @@ protected void onDraw(@NonNull Canvas canvas) { canvas.drawRect(getScrollX() + startX, lineStartY, getScrollX() + startX + interval, lineStartY + getPixel(1), paint); } } else if (hasFocus()) { // focused - paint.setColor(baseColor); + paint.setColor(primaryColor); canvas.drawRect(getScrollX(), lineStartY, getWidth() + getScrollX(), lineStartY + getPixel(2), paint); } else { // normal paint.setColor(baseColor); @@ -504,7 +504,7 @@ protected void onDraw(@NonNull Canvas canvas) { } Paint.FontMetrics fontMetrics = paint.getFontMetrics(); - float relativeHeight = -fontMetrics.ascent - fontMetrics.descent; + float relativeHeight = -fontMetrics.ascent - fontMetrics.descent; // draw the characters counter if (maxCharacters > 0) { diff --git a/library/src/main/java/com/rengwuxian/materialedittext/MaterialEditText.java b/library/src/main/java/com/rengwuxian/materialedittext/MaterialEditText.java index 1a64cf03..2aac4fe1 100644 --- a/library/src/main/java/com/rengwuxian/materialedittext/MaterialEditText.java +++ b/library/src/main/java/com/rengwuxian/materialedittext/MaterialEditText.java @@ -497,7 +497,7 @@ protected void onDraw(@NonNull Canvas canvas) { canvas.drawRect(getScrollX() + startX, lineStartY, getScrollX() + startX + interval, lineStartY + getPixel(1), paint); } } else if (hasFocus()) { // focused - paint.setColor(baseColor); + paint.setColor(primaryColor); canvas.drawRect(getScrollX(), lineStartY, getWidth() + getScrollX(), lineStartY + getPixel(2), paint); } else { // normal paint.setColor(baseColor); diff --git a/sample/build.gradle b/sample/build.gradle index b5d7223a..7b30113e 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -19,7 +19,7 @@ android { dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) - compile 'com.android.support:appcompat-v7:21.0.0' - compile 'com.rengwuxian.materialedittext:library:1.4.0' + compile 'com.android.support:appcompat-v7:21.0.2' + compile 'com.rengwuxian.materialedittext:library:1.4.2' // compile project(':library') } diff --git a/sample/sample.iml b/sample/sample.iml index 17368343..844adc52 100644 --- a/sample/sample.iml +++ b/sample/sample.iml @@ -1,5 +1,5 @@ - + @@ -83,11 +83,11 @@ - - - - + + + +