Skip to content

Commit

Permalink
1.4.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
rengwuxian committed Nov 20, 2014
1 parent 038fc39 commit aca71a2
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion MaterialEditText.iml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="com.rengwuxian.materialedittext" external.system.module.version="1.4.0" type="JAVA_MODULE" version="4">
<module external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="com.rengwuxian.materialedittext" external.system.module.version="1.4.2" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="java-gradle" name="Java-Gradle">
<configuration>
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,25 +50,25 @@ 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:
```xml
<dependency>
<groupId>com.rengwuxian.materialedittext</groupId>
<artifactId>library</artifactId>
<version>1.4.0</version>
<version>1.4.2</version>
<type>aar</type>
</dependency>
```
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions library/library.iml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="com.rengwuxian.materialedittext" external.system.module.version="1.4.0" type="JAVA_MODULE" version="4">
<module external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="com.rengwuxian.materialedittext" external.system.module.version="1.4.2" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="android-gradle" name="Android-Gradle">
<configuration>
Expand Down Expand Up @@ -86,8 +86,8 @@
</content>
<orderEntry type="jdk" jdkName="Android API 21 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" exported="" name="support-annotations-21.0.0" level="project" />
<orderEntry type="library" exported="" name="library-2.4.0" level="project" />
<orderEntry type="library" exported="" name="support-annotations-21.0.0" level="project" />
</component>
</module>

Original file line number Diff line number Diff line change
Expand Up @@ -496,15 +496,15 @@ 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);
canvas.drawRect(getScrollX(), lineStartY, getWidth() + getScrollX(), lineStartY + getPixel(1), paint);
}

Paint.FontMetrics fontMetrics = paint.getFontMetrics();
float relativeHeight = -fontMetrics.ascent - fontMetrics.descent;
float relativeHeight = -fontMetrics.ascent - fontMetrics.descent;

// draw the characters counter
if (maxCharacters > 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
10 changes: 5 additions & 5 deletions sample/sample.iml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="com.rengwuxian.materialedittext" external.system.module.version="1.4.0" type="JAVA_MODULE" version="4">
<module external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="com.rengwuxian.materialedittext" external.system.module.version="1.4.2" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="android-gradle" name="Android-Gradle">
<configuration>
Expand Down Expand Up @@ -83,11 +83,11 @@
</content>
<orderEntry type="jdk" jdkName="Android API 21 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" exported="" name="library-1.4.0" level="project" />
<orderEntry type="library" exported="" name="support-annotations-21.0.0" level="project" />
<orderEntry type="library" exported="" name="support-v4-21.0.0" level="project" />
<orderEntry type="library" exported="" name="library-2.4.0" level="project" />
<orderEntry type="library" exported="" name="appcompat-v7-21.0.0" level="project" />
<orderEntry type="library" exported="" name="library-1.4.2" level="project" />
<orderEntry type="library" exported="" name="support-v4-21.0.2" level="project" />
<orderEntry type="library" exported="" name="support-annotations-21.0.2" level="project" />
<orderEntry type="library" exported="" name="appcompat-v7-21.0.2" level="project" />
</component>
</module>

0 comments on commit aca71a2

Please sign in to comment.