Skip to content

Commit

Permalink
1.2.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
rengwuxian committed Nov 11, 2014
1 parent e66b655 commit d87d247
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 17 deletions.
6 changes: 0 additions & 6 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.1.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.2.1" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="java-gradle" name="Java-Gradle">
<configuration>
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION_NAME=1.1.0
VERSION_CODE=7
VERSION_NAME=1.2.1
VERSION_CODE=10
GROUP=com.rengwuxian.materialedittext

POM_DESCRIPTION=Android EditText in Material Design
Expand All @@ -14,5 +14,5 @@ POM_DEVELOPER_ID=rengwuxian
POM_DEVELOPER_NAME=Zhu Kai

ANDROID_BUILD_TARGET_SDK_VERSION=21
ANDROID_BUILD_TOOLS_VERSION=21.1.0
ANDROID_BUILD_TOOLS_VERSION=21.1.1
ANDROID_BUILD_SDK_VERSION=21
2 changes: 1 addition & 1 deletion 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.1.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.2.1" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="android-gradle" name="Android-Gradle">
<configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,19 @@ private void initPadding() {
setPadding(getPaddingLeft(), getPaddingTop(), getPaddingRight(), getPaddingBottom());
}

/**
* use {@link #setPaddings(int, int, int, int)} instead, or the paddingTop and the paddingBottom may be set incorrectly.
*/
@Deprecated
@Override
public void setPadding(int left, int top, int right, int bottom) {
public final void setPadding(int left, int top, int right, int bottom) {
super.setPadding(left, top, right, bottom);
}

/**
* Use this method instead of {@link #setPadding(int, int, int, int)} to automatically set the paddingTop and the paddingBottom correctly.
*/
public void setPaddings(int left, int top, int right, int bottom) {
innerPaddingTop = top;
innerPaddingBottom = bottom;
super.setPadding(left, top + extraPaddingTop, right, bottom + extraPaddingBottom);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,22 @@ private void initPadding() {
extraPaddingTop = floatingLabelEnabled ? floatingLabelTextSize + innerComponentsSpacing : innerComponentsSpacing;
extraPaddingBottom = maxCharacters > 0 ? floatingLabelTextSize : singleLineEllipsis ? innerComponentsSpacing + bottomEllipsisSize : 0;
extraPaddingBottom += innerComponentsSpacing * 2;
setPadding(getPaddingLeft(), getPaddingTop(), getPaddingRight(), getPaddingBottom());
setPaddings(getPaddingLeft(), getPaddingTop(), getPaddingRight(), getPaddingBottom());
}

/**
* use {@link #setPaddings(int, int, int, int)} instead, or the paddingTop and the paddingBottom may be set incorrectly.
*/
@Deprecated
@Override
public void setPadding(int left, int top, int right, int bottom) {
public final void setPadding(int left, int top, int right, int bottom) {
super.setPadding(left, top, right, bottom);
}

/**
* Use this method instead of {@link #setPadding(int, int, int, int)} to automatically set the paddingTop and the paddingBottom correctly.
*/
public void setPaddings(int left, int top, int right, int bottom) {
innerPaddingTop = top;
innerPaddingBottom = bottom;
super.setPadding(left, top + extraPaddingTop, right, bottom + extraPaddingBottom);
Expand Down
Binary file removed library/src/main/res/drawable-hdpi/ic_launcher.png
Binary file not shown.
Binary file removed library/src/main/res/drawable-mdpi/ic_launcher.png
Binary file not shown.
Binary file not shown.
Binary file removed library/src/main/res/drawable-xxhdpi/ic_launcher.png
Binary file not shown.
2 changes: 1 addition & 1 deletion sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ android {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.0'
compile 'com.rengwuxian.materialedittext:library:1.1.0'
compile 'com.rengwuxian.materialedittext:library:1.2.1'
// compile project(':library')
}
4 changes: 2 additions & 2 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.1.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.2.1" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="android-gradle" name="Android-Gradle">
<configuration>
Expand Down Expand Up @@ -85,7 +85,7 @@
<orderEntry type="sourceFolder" forTests="false" />
<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-1.1.0" level="project" />
<orderEntry type="library" exported="" name="library-1.2.1" 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" />
</component>
Expand Down

0 comments on commit d87d247

Please sign in to comment.