简体   繁体   English

仅通过日历视图在Android App中显示日历?

[英]Calendar display in Android App only through Calendar View?

I would like to display a calendar in an android app. 我想在Android应用中显示日历。 Based on some research, I found that we can use the CalendarView widget to display a calendar. 根据一些研究,我发现我们可以使用CalendarView小部件显示日历。 We cannot create events, attendees or other features using the CalendarView, correct me if I am wrong. 我们无法使用CalendarView创建事件,与会者或其他功能,如果我错了,请纠正我。 The other option is to use the native in built calendar using Intents. 另一个选项是通过Intent使用内置的内置日历。

  1. Is there any other way to display a calendar easily in an Android app easily without the above 2 methods and still be able to create events, attendees or other features. 是否有其他方法可以轻松在Android应用中轻松显示日历,而无需上述两种方法,并且仍然能够创建活动,参与者或其他功能。

  2. Can CalendarProvider be used create a calendar display. 可以使用CalendarProvider创建日历显示。 I know it can be used to create events, attendees, reminders etc... 我知道它可以用来创建活动,与会者,提醒等...

  3. Can CalenderProvider be used in conjunction with CalendarView? 可以将CalenderProvider与CalendarView结合使用吗?

  4. If CalendarProvider cannot be used in conjunction with CalendarView or any other easy way, should we build a calendar from scratch? 如果CalendarProvider无法与CalendarView或其他任何简单方法结合使用,我们是否应该从头开始构建日历?

Thank you in advance!!! 先感谢您!!!

Based on some research, I found that we can use the CalendarView widget to display a calendar. 根据一些研究,我发现我们可以使用CalendarView小部件显示日历。

You can use CalendarView to allow the user to pick a date. 您可以使用CalendarView允许用户选择日期。

We cannot create events, attendees or other features using the CalendarView, correct me if I am wrong 我们无法使用CalendarView创建事件,与会者或其他功能,如果我输入错误,请纠正我

CalendarView is a widget. CalendarView是一个小部件。 Its job is not to "create events, attendees" — similarly, it is not the job of EditText to create Wikipedia pages. 它的工作不是“创建活动,参加者”-类似地,创建Wikipedia页面也不是EditText的工作。 The job of CalendarView is to let the user pick a date using a calendar-style visual representation. CalendarView的工作是让用户使用日历样式的视觉表示来选择日期。

Is there any other way to display a calendar easily in an Android app easily without the above 2 methods and still be able to create events, attendees or other features 是否有其他方法可以轻松在Android应用中轻松显示日历,而无需上述两种方法,并且仍然能够创建活动,参与者或其他功能

You are certainly welcome to see if there is an existing library that has your desired feature set. 当然,欢迎您查看是否存在具有所需功能集的

Can CalendarProvider be used create a calendar display 可以使用CalendarProvider创建日历显示

Not directly. 不直接。 This is akin to asking "can I use an Excel spreadsheet to create a calendar display?" 这类似于询问“我可以使用Excel电子表格创建日历显示吗?” CalendarProvider is a data store. CalendarProvider是一个数据存储。 It is not a visual representation of an event calendar. 它不是事件日历的直观表示。

Can CalenderProvider be used in conjunction with CalendarView? 可以将CalenderProvider与CalendarView结合使用吗?

Not in the way that you are thinking. 并非以您的思维方式。 CalendarView is a way to allow the user to pick a date. CalendarView是一种允许用户选择日期的方法。 It is not a way to show the user information about particular dates (eg, appointments or other events). 这不是一种向用户显示有关特定日期(例如约会或其他事件)的信息的方法。

should we build a calendar from scratch? 我们应该从头开始建立日历吗?

That is up to you. 那取决于你。

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

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