日期时间段选择对话框,如:(2019-10-11 ~ 2019-11-06)
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Add the dependency
dependencies {
implementation 'com.github.Dazhi528:DialogDateSlot:x.x.x'
}
见sample目录(kotlin)
DialogDateSlot(this, "2019-11-20",
"2019-12-02", InteDateSlot { dateSta, dateEnd ->
Toast.makeText(this,
"开始:$dateSta ~ 结束:$dateEnd",
Toast.LENGTH_LONG)
.show()
}).show()