From 5e156e64ea01938f5ed29faf5afacd4b1d0ec949 Mon Sep 17 00:00:00 2001 From: YZL Date: Thu, 22 Dec 2016 11:44:04 +0800 Subject: [PATCH] 1.4 --- README.md | 7 ++++++- .../yzl/ruleview/library/widget/RulerView.java | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 293cae9..459ecdb 100644 --- a/README.md +++ b/README.md @@ -112,13 +112,18 @@ allprojects { } //module dependencies { - compile 'com.github.yizeliang:RulerView:1.3' + compile 'com.github.yizeliang:RulerView:1.4' } ``` ## 5更新日志 +### 1.4版本 + +- 修改版本号 +- 加入 设置数量方法 + ### 1.3版本 - 加入 基线 文字,刻度 的位置变化属性 diff --git a/library/src/main/java/cn/yzl/ruleview/library/widget/RulerView.java b/library/src/main/java/cn/yzl/ruleview/library/widget/RulerView.java index ef669ae..b99f609 100644 --- a/library/src/main/java/cn/yzl/ruleview/library/widget/RulerView.java +++ b/library/src/main/java/cn/yzl/ruleview/library/widget/RulerView.java @@ -715,4 +715,22 @@ public void setMidLineColor(int midLineColor) { this.midLineColor = midLineColor; computeYPostion(); } + + public int getMaxLineCount() { + return maxLineCount; + } + + public void setMaxLineCount(int maxLineCount) { + this.maxLineCount = maxLineCount; + computeYPostion(); + } + + public int getMidLineCount() { + return midLineCount; + } + + public void setMidLineCount(int midLineCount) { + this.midLineCount = midLineCount; + computeYPostion(); + } }