Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.acappelli:Android-PickerView:2.10'
}
dependencies {
implementation("com.github.acappelli:Android-PickerView:2.10")
}
<dependency>
<groupId>com.github.acappelli</groupId>
<artifactId>Android-PickerView</artifactId>
<version>2.10</version>
</dependency>
libraryDependencies += "com.github.acappelli" % "Android-PickerView" % "2.10"
:dependencies [[com.github.acappelli/Android-PickerView "2.10"]]
精仿iOS的PickerView控件,有时间选择和选项选择并支持一二三级联动效果
——TimePickerView 时间选择器,支持年月日时分,年月日,年月,时分等格式
——OptionsPickerView 选项选择器,支持一,二,三级选项选择,并且可以设置是否联动
2.x是全新的3D效果,比1.x版本更加贴近iOS的效果,从外观细节上也得到了改善。api兼容1.x版本,只需要把依赖的版本号升级即可,几乎不用修改代码即可完成升级。
####使用gradle 依赖:
compile 'com.bigkoo:pickerview:2.0.8'

更新说明
v2.0.0 不需修改任何代码就可以兼容1.x
v2.0.1
v2.0.2
v2.0.3
v2.0.4
v2.0.5
v2.0.6
v2.0.7
v2.0.8
---------------------华丽丽的分割线--------------------------
####使用gradle 依赖:
compile 'com.bigkoo:pickerview:1.0.3'
