Skip to content

Commit

Permalink
release as 1.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
liyujiang-gzu committed Jan 9, 2017
1 parent c7296c6 commit 08d86b2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### v1.4.2 - 2017.01.09
滑轮选择器默认禁用循环滚动;
日期时间选择器宽度兼容480x800;
demo的地址选择器重构,方便回调;
### v1.4.1 - 2017.01.08
修复选择器在Android4.X版本上奔溃问题;
改进文件目录选择器的路径指示效果;
Expand Down
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,25 +93,26 @@ dependencies {
"Leo", "Virgo", "Libra", "Scorpio", "Sagittarius", "Capricorn"
});
picker.setLabel(isChinese ? "" : "");
picker.setTopBackgroundColor(0xFFEEEEEE);
picker.setTopHeight(50);
picker.setTopLineColor(0xFF33B5E5);
picker.setTopLineHeight(1);
picker.setCycleDisable(true);//禁用循环
picker.setLineConfig(config);
picker.setTopHeight(50);//顶部标题栏高度
picker.setTopLineColor(0xFF33B5E5);//顶部标题栏下划线颜色
picker.setTopLineHeight(1);//顶部标题栏下划线高度
picker.setTitleText(isChinese ? "请选择" : "Please pick");
picker.setTitleTextColor(0xFF999999);
picker.setTitleTextSize(12);
picker.setCancelTextColor(0xFF33B5E5);
picker.setTitleTextColor(0xFF999999);//顶部标题颜色
picker.setTitleTextSize(12);//顶部标题文字大小
picker.setCancelTextColor(0xFF33B5E5);//顶部取消按钮文字颜色
picker.setCancelTextSize(14);
picker.setSubmitTextColor(0xFF33B5E5);
picker.setSubmitTextColor(0xFF33B5E5);//顶部确定按钮文字颜色
picker.setSubmitTextSize(14);
picker.setTextColor(0xFFEE0000, 0xFF999999);
picker.setTextColor(0xFFEE0000, 0xFF999999);//中间滚动项文字颜色
WheelView.LineConfig config = new WheelView.LineConfig();
config.setColor(0xFFEE0000);//线颜色
config.setAlpha(140);//线透明度
picker.setLineConfig(config);
picker.setBackgroundColor(0xFFE1E1E1);
//picker.setSelectedItem(isChinese ? "射手" : "Sagittarius");
picker.setSelectedIndex(10);
picker.setSelectedIndex(10);//默认选中项
picker.setOnOptionPickListener(new OptionPicker.OnOptionPickListener() {
@Override
public void onOptionPicked(int index, String item) {
Expand Down

0 comments on commit 08d86b2

Please sign in to comment.