开发者

Android Default Calendar Application, Can I Use It's Day View Object I Can Use In My Application

开发者 https://www.devze.com 2023-03-21 23:01 出处:网络
I have been look开发者_JS百科ing around and what I have found is a google code project for calendar view but it\'s not what I\'m looking for.

I have been look开发者_JS百科ing around and what I have found is a google code project for calendar view but it's not what I'm looking for.

What I'd like is the ability to use the view that is the default day view of the default Calendar application. Does anyone know whether or not I can use it's day view in my app or if their is one that was developed and released that I can use?

Again I don't want a full month view or really even a week view. At the moment I just want a day view like so many of us use to quickly glance at what we've got going on for the day.

I'm also not interested at this time of fetching google calendar appointments or merging with them. This will be a separate list of appointments / tasks that from their own data source. I have all that done now I'm just trying to find a pretty way to display them (listview is a tad bit basic lol).


Does anyone know whether or not I can use it's day view in my app or if their is one that was developed and released that I can use?

You can probably find the source code for it in the Android open source project, but it may not be designed for reuse.

Android 3.x has a CalendarView widget; once the source code for Android 3.x is released (hopefully later this year), it may be that you can back-port that to older Android versions.

The iosched application from Google I|O 2011 has its own calendar view.


Most of the functionality that is hard to write is already in the java.util.Calendar class and subclasses. It should be fairly easy to write a thin UI wrapper around an instance of Calendar? You would only be re-inventing the user interface, not date logic :-)

0

精彩评论

暂无评论...
验证码 换一张
取 消