firebase 如何在Android的日历视图中为日期添加自定义颜色?

yh2wf1be  于 7个月前  发布在  Android
关注(0)|答案(1)|浏览(79)

目前,我正在开发一个Andriod应用程序的考勤管理系统.对于显示出勤给用户是否他们是“出席”或“缺席”在特定的一天通过区分他们使用红色和绿色颜色.我不知道如何做到这一点.
我试过使用“zcustomcalendar”来实现这个功能,但最终出现了“Failed to resolve:org.naishadhparmar.zcustomcalendar:zcustomcalendar:1.0.1”错误。

下面是我在项目中使用的依赖项。

dependencies {
    implementation 'androidx.appcompat:appcompat:1.5.0'
    implementation 'com.google.android.material:material:1.6.1'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.1.3'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
    implementation 'org.naishadhparmar.zcustomcalendar:zcustomcalendar:1.0.1'
}

字符串

kfgdxczn

kfgdxczn1#

你必须添加

maven {
    url 'https://jitpack.io'
}

字符串
在项目级别分级器中

相关问题