LoopView年月日联动选择器实现与生日计算

年月日联动选择器的 LoopView 实现,挺适合用在生日设置这种场景里。基于循环滚动的原理,滚起来手感不错,还能自定义样式,颜值也在线。逻辑上就是三个LoopView联动:年选了之后,动态更新月;月变了再更新日,细节得当,用户体验会流畅。尤其是日期那块,记得闰年,不然 2 月 29 会出 Bug。还能算年龄,拿用户生日跟当前日期一比对就行,挺实用的。

folder
LoopView 实现 年月日三级联动,根据年月日计算生日 预估大小:1095个文件
file
gradlew.bat 2KB
folder
built.bin 文件夹
file
taskHistory.bin 94KB
file
fileSnapshots.bin 3.2MB
file
fileHashes.bin 437KB
file
resourceHashesCache.bin 19KB
file
last-build.bin 1B
file
classAnalysis.bin 913KB
file
taskJars.bin 22KB
file
taskHistory.bin 1.1MB
file
jarAnalysis.bin 309KB
file
app-debug.apk 1.5MB
file
resources-debug.ap_ 398KB
file
R$styleable.class 24KB
file
R$styleable.class 33KB
file
R$style.class 22KB
file
94lLFc_bIegFwdPTqHpj8TYwQ8o= 24KB
file
4FP3P7BnldvC+uLl6LnTDhP6Jhk= 93KB
file
94lLFc_bIegFwdPTqHpj8TYwQ8o= 24KB
file
4FP3P7BnldvC+uLl6LnTDhP6Jhk= 93KB
zip 文件大小:12.39MB