Skip to content

Commit

Permalink
release as 1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
liyujiang-gzu committed Dec 20, 2016
1 parent ce71bb5 commit b927311
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 7 deletions.
4 changes: 3 additions & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
### v1.3.1 - 2016.12.18
### v1.3.2 - 2016.12.19
支持设置选中项分割线的宽比例、透明度、粗度;
修复小数选择器设置默认选择项可能无效的bug;
添加中国大陆车牌号码选择器;
### v1.3.1 - 2016.12.17
对1.2.*版本作兼容处理。
### v1.3.0 - 2016.12.15
支持设置选择器主体背景颜色;
所有选择器支持滑动实时监听;
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
安卓选择器类库,包括日期选择器、时间选择器、单项选择器、城市地址选择器、车牌号选择器、数字选择器、星座选择器、生肖选择器、颜色选择器、文件选择器、目录选择器等,可自定义顶部及底部界面,可自定义窗口动画……
欢迎大伙儿在[Issues](https://github.com/gzu-liyujiang/AndroidPicker/issues)提交你的意见或建议。
欢迎Fork & Pull requests贡献您的代码,大家共同学习【[AndroidPicker交流群 604235437](https://jq.qq.com/?_wv=1027&k=42bKOeD)】。
[查看更新日志](https://github.com/gzu-liyujiang/AndroidPicker/blob/master/ChangeLog.md)**新版本未对旧版API作兼容处理,升级后若编译报错请根据错误提示更改**
[查看更新日志](https://github.com/gzu-liyujiang/AndroidPicker/blob/master/ChangeLog.md)**新版本可能未对旧版API作兼容处理,升级后若编译报错请根据错误提示更改**

# Install
“app”是测试用例;“library”包括WheelPicker、ColorPicker、FilePicker,
Expand Down Expand Up @@ -185,10 +185,10 @@ dependencies {
picker.setRange(145, 200, 1);//数字范围
picker.setSelectedItem(172);
picker.setLabel("厘米");
picker.setOnOptionPickListener(new OptionPicker.OnOptionPickListener() {
picker.setOnNumberPickListener(new NumberPicker.OnNumberPickListener() {
@Override
public void onOptionPicked(String option) {
showToast(option);
public void onNumberPicked(int index, Number item) {
showToast("index=" + index + ", item=" + item.intValue());
}
});
picker.show();
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ com.android.build.gradle.overridePathCheck=true
#android.useDeprecatedNdk=true

#下面定义一些常量供gradle脚本使用
VERSION_NAME=1.3.1
VERSION_CODE=131
VERSION_NAME=1.3.2
VERSION_CODE=132
COMPILE_SDK_VERSION=23
MIN_SDK_VERSION=11
#安卓6.0开始(API23+),需要动态申请权限
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,19 @@ public void setOnNumberPickListener(OnNumberPickListener listener) {
super.setOnItemPickListener(listener);
}

/**
* @deprecated use {@link #setOnNumberPickListener(OnNumberPickListener)} instead
*/
@Deprecated
public void setOnOptionPickListener(final OptionPicker.OnOptionPickListener listener) {
setOnNumberPickListener(new OnNumberPickListener() {
@Override
public void onNumberPicked(int index, Number item) {
listener.onOptionPicked(index, item.toString());
}
});
}

public static abstract class OnNumberPickListener implements OnItemPickListener<Number> {

public abstract void onNumberPicked(int index, Number item);
Expand Down

0 comments on commit b927311

Please sign in to comment.