【问题标题】:Editing the color of the selected date Material Calendar View编辑所选日期的颜色 材质日历视图
【发布时间】:2018-12-15 15:37:23
【问题描述】:

我在数据库中有几个日期。

我想把这些日期放在我的日历中。背景改变了。取决于其他变量。

现在是一个僵硬的代码

   private void  colorCalendar(){
       String dt = "12122018";
           Date date = new Date(dt);
           SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
           String formatted = sdf.format(date);
       //calendarView.setSelectionColor();

       calendarView.setSelectedDate(LocalDate.parse(formatted));
   }

但是错误。

我使用https://github.com/prolificinteractive/material-calendarview 安卓工作室。

但我可以改变它

我指望你的帮助

【问题讨论】:

    标签: java android calendar calendarview


    【解决方案1】:

    材料日历视图

    好的代码是它自己最好的文档

    我认为这里的库有关于您的用例的良好文档, 当您说取决于其他变量时,我建议您通过此链接或提供有关它的更多信息。 Customization

    【讨论】:

      猜你喜欢
      • 2015-09-28
      • 2018-02-05
      • 1970-01-01
      • 2019-11-23
      • 1970-01-01
      • 2022-07-20
      • 2021-08-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多