开发者

Help! How can I create a calendar app for Android?

开发者 https://www.devze.com 2023-03-27 00:04 出处:网络
I have created a GridView to manage a Calendar application. The ide开发者_运维问答a is that the user will be able to add text and images to specific days, and view events in the grid.

I have created a GridView to manage a Calendar application. The ide开发者_运维问答a is that the user will be able to add text and images to specific days, and view events in the grid.

Are there any calendar libraries or built-in classes that I could use instead of GridView, or does anyone have experience using a GridView specifically for this (or a similar) purpose?

Answers with code would be very appreciated.


Instead of creating your own grid and attempting to build this calendar from scratch, Android 3.0 (API 11) has a built in Calendar View. On the dev page, this view is described as follows:

This class is a calendar widget for displaying and selecting dates. The range of dates supported by this calendar is configurable. A user can select a date by taping on it and can scroll and fling the calendar to a desired date.

Although you cannot type directly in this View, you can allow the user to select the date, and using the selected date open a new Activity that lets him or her add text using an EditText, or choose a photo.

0

精彩评论

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