Skip to content

Commit c6cfc31

Browse files
author
hongyangAndroid
committed
增加低于1px,设置为1px规则
1 parent dbc974f commit c6cfc31

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ dependencies {
5555

5656
```
5757
dependencies {
58-
compile 'com.zhy:autolayout:1.3.2'
58+
compile 'com.zhy:autolayout:1.3.3'
5959
}
6060
```
6161

autolayout/autolayout.iml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<module external.linked.project.id=":autolayout" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="com.zhy" external.system.module.version="1.3.1" type="JAVA_MODULE" version="4">
2+
<module external.linked.project.id=":autolayout" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="com.zhy" external.system.module.version="1.3.2" type="JAVA_MODULE" version="4">
33
<component name="FacetManager">
44
<facet type="android-gradle" name="Android-Gradle">
55
<configuration>

autolayout/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
22
apply plugin: 'com.github.dcendents.android-maven'
33
apply plugin: 'com.jfrog.bintray'
44

5-
version = "1.3.2"
5+
version = "1.3.3"
66

77
android {
88
compileSdkVersion 23

autolayout/src/main/java/com/zhy/autolayout/attr/AutoAttr.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public void apply(View view)
2929

3030
if (log)
3131
{
32-
L.e(" pxVal = " + pxVal +" ," + this.getClass().getSimpleName());
32+
L.e(" pxVal = " + pxVal + " ," + this.getClass().getSimpleName());
3333
}
3434
int val;
3535
if (useDefault())
@@ -54,6 +54,8 @@ public void apply(View view)
5454
L.e(" baseHeight val= " + val);
5555
}
5656
}
57+
58+
val = Math.max(val, 1);//for very thin divider
5759
execute(view, val);
5860
}
5961

preview/preview_03.png

1.38 KB
Loading

0 commit comments

Comments
 (0)