如何创建与事件管理的自定义日历? [英] How to create custom calendar with event management?

查看:134
本文介绍了如何创建与事件管理的自定义日历?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的要求 -
我试图让一个应用程序,它只有日历的功能,当用户打开应用程序,日历打开相同的像谷歌日历。我收到来自Web服务的事件,我必须根据日历日期,以显示这些事件。现在,如果他们是在任何​​日期比任何情况下他们应该是事件的时间色块,如果多个事件在那里,比我们显示的每个一个事件。多色块

我在这里有一个良好的忠告。我可以通过默认库或API的做到这一点?因为我读过的Andr​​oid API的 日历 ,<一个href=\"http://developer.android.com/reference/android/widget/CalendarView.html\"><$c$c>CalendarView, <一href=\"http://developer.android.com/guide/topics/providers/calendar-provider.html\"><$c$c>calendar-provider, <一href=\"http://developer.android.com/reference/android/provider/CalendarContract.html\"><$c$c>CalendarContract.但是,没有人告诉我们如何能显示自己的日历事件。

所以,我用自定义日历尝试它。我能够通过创建自定义日历的GridView

我希望它看起来像这样的事件

BTW我最小的Andr​​oid支持的是Android 4.0版


解决方案

  

我可以通过默认库或API的做到这一点?


没有。 CalendarView 更是一个另类的日期选择器比的DatePicker

<一个href=\"http://www.androidviews.net/2013/04/extendedcalendarview/\"><$c$c>ExtendedCalendarView看起来是更符合你正在寻找的东西。

My Requirement:- I am trying to make an app which have only calendar functionality, when user opens the app, calendar opens same like Google calendar. I receive events from web service and i have to show those events according to the date in calendar. Now if their is any event on any date than their should be a color block for event time, and if multiple events are there, than we have to show multiple color blocks each for one events.

I am here for a good piece of advice. Can i do this by default libraries or API's? because I have read android API's Calendar, CalendarView, calendar-provider, CalendarContract. But no one tells that how can we show events in your own calendar.

So I am trying it with custom calendar. I am able to create custom calendar by using Gridview.

.

I want it to look like this with events

.

BTW My minimum Android support is android v4.0

解决方案

Can i do this by default libraries or API's?

No. CalendarView is more of an alternative date picker than DatePicker.

ExtendedCalendarView looks like it is more in line with what you are seeking.

这篇关于如何创建与事件管理的自定义日历?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆