简体   繁体   English

带有事件的 Android 日历 API

[英]Android Calendar API with Event

I am looking for way to get a calendar view with Event added on specific date something like the below:我正在寻找在特定日期添加事件的日历视图的方法,如下所示:

在此处输入图片说明 And when I click on the calendar date another activity has to be opened?当我点击日历日期时,必须打开另一个活动吗?

Can the default calendar View help me doing the same or is there any other API that can help get the result like above?默认日历视图可以帮助我做同样的事情还是有任何其他 API 可以帮助获得上述结果?

Let me know!让我知道!

Thanks!谢谢!

You can use default calender library like您可以使用默认日历库,如

or you can use Caldroid或者你可以使用Caldroid

You can use default calendarview, I have used material calendarview for similar result.您可以使用默认的日历视图,我已经使用材料日历视图来获得类似的结果。
You can even add events in text form as well as you can show drawable images with texts there.您甚至可以以文本形式添加事件,也可以在那里显示带有文本的可绘制图像。
See the line of code:查看代码行:

List<EventDay> events = new ArrayList<>();
events.add(new EventDay(calendar, CalendarUtils.getDrawableText(this, "₹"+wonAmt, Typeface.DEFAULT_BOLD, R.color.green, 8)));

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM