File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Summary
22[ ![ API] ( https://img.shields.io/badge/API-9%2B-green.svg )] ( https://github.com/gzu-liyujiang/AndroidPicker )
3- [ ![ Download] ( https://api.bintray.com/packages/gzu-liyujiang/maven/AndroidPicker /images/download.svg )] ( http://jcenter.bintray.com/cn/qqtheme/framework/AndroidPicker )
3+ [ ![ Download] ( https://api.bintray.com/packages/gzu-liyujiang/maven/WheelPicker /images/download.svg )] ( http://jcenter.bintray.com/cn/qqtheme/framework/ )
44安卓选择器类库,包括日期选择器、时间选择器、单项选择器、城市选择器、颜色选择器、文件选择器、目录选择器、数字选择器、星座选择器、生肖选择器等,可自定义顶部及底部界面,可自定义窗口动画。
55欢迎大伙儿在[ Issues] ( https://github.com/gzu-liyujiang/AndroidPicker/issues ) 提交你的意见或建议。欢迎Fork & Pull requests贡献您的代码。
66
7- # Change Log
7+ # Change Log
8+ - v1.1.1 - 2016.4.23
9+ + 合并@Wastrel 及@lutas2000 贡献的代码,地址选择器支持只选择省和市、不能混淆某些类;
810- v1.1.0 - 2016.01.29
911+ 添加注解约束,如“setOffset()”只能是1至4;
1012+ 所有枚举类改为常量来表示,据说这样可以节约内存;
2325# Install
2426“app”是测试用例;“library”包括WheelPicker、ColorPicker、FilePicker,
2527WheelPicker包括DatePicker、TimePicker、OptionPicker、AddressPicker、NumberPicker等,
26- 建议手动下载本项目 ,导入“library”下的相关module,然后依赖,如:
28+ 可下载本项目手动进行源代码集成 ,导入“library”下的相关module,然后依赖,如:
2729``` groovy
2830dependencies {
29- compile project(':library:WheelPicker')
31+ compile project(':WheelPicker')
32+ compile project(':FilePicker')
3033}
3134```
32- * 注:本项目使用gradle来构建,Eclipse用户建议换为Android Studio或Intellij IDEA。*
35+ 也可以直接远程懒加载jcenter里的,如:
36+ ``` groovy
37+ dependencies {
38+ compile project('cn.qqtheme.framework:WheelPicker:1.1.1')
39+ compile project('cn.qqtheme.framework:FilePicker:1.1.0')
40+ }
41+ ```
42+ * 注:*
43+ 本项目使用gradle来构建,迁移到Eclipse比较麻烦,建议换为Android Studio或Intellij IDEA。
44+ 由于地址选择器使用了FastJson来解析,混淆时候需要加入以下类似的规则,不混淆Province、City等实体类。
45+ ```
46+ -keep class cn.qqtheme.framework.entity.** { ;}
47+ -keep class cn.qqtheme.framework.picker.AddressPickerr$ { *;}
48+ ```
3349
3450# Custom
3551### 自定义窗口进入退出动画(可选,默认动画为淡入淡出)
Original file line number Diff line number Diff line change @@ -19,11 +19,11 @@ android {
1919
2020dependencies {
2121 compile ' com.alibaba:fastjson:1.1.46.android'
22- compile ' com.github.florent37:viewanimator:1.0.2 '
23- compile project(' :library:WheelPicker' )
24- compile project(' :library:FilePicker' )
25- compile project(' :library:ColorPicker' )
26- // compile 'cn.qqtheme.framework:WheelPicker:1.1.0 '
27- // compile 'cn.qqtheme.framework:FilePicker:1.1.0 '
28- // compile 'cn.qqtheme.framework:ColorPicker:1.1.0 '
22+ compile ' com.github.florent37:viewanimator:1.0.3 '
23+ // compile project(':library:WheelPicker')
24+ // compile project(':library:FilePicker')
25+ // compile project(':library:ColorPicker')
26+ compile ' cn.qqtheme.framework:WheelPicker:1.1.1 '
27+ compile ' cn.qqtheme.framework:FilePicker:1.1.1 '
28+ compile ' cn.qqtheme.framework:ColorPicker:1.1.1 '
2929}
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ com.android.build.gradle.overridePathCheck=true
44# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
55
66# 下面定义一些常量供gradle脚本使用
7- VERSION_NAME =1.1.0
8- VERSION_CODE =110
7+ VERSION_NAME =1.1.1
8+ VERSION_CODE =111
99COMPILE_SDK_VERSION =23
1010MIN_SDK_VERSION =9
1111BUILD_TOOL_VERSION =23.0.1
@@ -15,7 +15,7 @@ GRADLE_BINTRAY_VERSION=1.5
1515
1616# 下面定义一些常量供gradle脚本使用
1717PROJ_GROUP =cn.qqtheme.framework
18- PROJ_VERSION =1.1.0
18+ PROJ_VERSION =1.1.1
1919PROJ_WEBSITE_URL =https://github.com/gzu-liyujiang/AndroidPicker
2020PROJ_ISSUE_URL =https://github.com/gzu-liyujiang/AndroidPicker/issues
2121PROJ_GIT_URL =git@github.com/gzu-liyujiang/AndroidPicker.git
Original file line number Diff line number Diff line change @@ -4,4 +4,4 @@ distributionPath=wrapper/dists
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
66distributionUrl =https\://services.gradle.org/distributions/gradle-2.8-all.zip
7- # distributionUrl=http://127.0.0.1/php-develop/ gradle-2.8-all.zip
7+ # distributionUrl=http://127.0.0.1/gradle-2.8-all.zip
Original file line number Diff line number Diff line change 22gradlew publishToMavenLocal --info
33
44@ rem http://jcenter.bintray.com
5- @ rem gradlew bintrayUpload --info
5+ @ rem gradlew bintrayUpload --info
Original file line number Diff line number Diff line change 1- include ' :app'
1+ include ' :app' , ' :library '
22include ' :library:Common'
33include ' :library:WheelPicker'
44include ' :library:FilePicker'
You can’t perform that action at this time.
0 commit comments