如何使用com.android.calendar.DayView? [英] How to use com.android.calendar.DayView?

查看:248
本文介绍了如何使用com.android.calendar.DayView?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个日历控制在我的应用程序,以显示在一天视图中的某些约会。据我看到它,有两种方法:写我自己的控制,是不是有趣,使用 com.android.calendar

I need a calender control in my application to show some "appointments" in a day view. As far as I see it, there are two ways: Write my own control which would be not that funny and to use com.android.calendar.

谁能告诉我怎么可以使用<一个href="http://www.google.com/$c$csearch/p?hl=en#b2bXTFUfX1o/src/com/android/calendar/DayView.java&q=%22package%20com.android.calendar%22&d=4"相对=nofollow> com.android.calendar.DayView 还是在所有有可能。一件重要的事情:我做的不可以要显示的用户的约会,而是加了我自己的动力的人

Can anyone tell me how I can use com.android.calendar.DayView or whether at all it is possible. One important thing: I do not want to show the appointments of the user but rather my own dynamical added ones.

我说的是这个控件:

I am talking about this control:

只是为了信息:据我所知,有对SO一些类似的问题。不过,我感兴趣的是 com.adnroid.calendar * ,而不是作为一个一般性的问题: - )

Just for information: I am aware that there are some similar questions on SO. However, I'm interested in com.adnroid.calendar.* and not as a general question :-).

推荐答案

这个类不在SDK。这是无证。这是不支持的。

That class is not in the SDK. It is undocumented. It is unsupported.

然而,它的的开源。欢迎您将它复制到自己的项目(和重构它到你自己的包中),但你会在你自己找出如何使它发挥作用。

However, it is open source. You are welcome to copy it into your own project (and refactor it into your own package), but you will be on your own to figure out how to make it work.

FWIW,有一个类似的无证/不支持/开源的谷歌I部件| Ø2011应用

FWIW, there is a similarly undocumented/unsupported/open source widget in the Google I|O 2011 app.

这可能是有这种小部件被记录在案,并支持其他的开源实现,但我想不出任何。我可能会利用这些之一,并把它作为基础,一个记录/提供Widget有一天,如果没人打我吧。

It is possible that there are other open source implementations of this sort of widget that are documented and supported, though I can't think of any. I will probably take one of these and use it as the basis for a documented/supported widget someday, if nobody beats me to it.

这篇关于如何使用com.android.calendar.DayView?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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