简体   繁体   中英

How to display a simple monthly calendar

I am building an Android app and I need to show a very simple monthly calendar (with next and previous month links). And, if possible, display events on some days.

I have search, high and low, for a solution but found nothing. Isn´t there a very simple way of doing this? All the widgets I find got too much features.

Check out this library: https://github.com/derekbrameyer/android-betterpickers

I currently use it to show a monthly calendar. it looks good, clean and is extremely easy to implement in an application.

I am not sure if this helps but maybe consider using a DatePickerDialog and put it into a DialogFragment , while making sure to use the CalendarView ... all of which is native to the Android SDK so it's a piece of cake to implement.

Also I have heard of a GitHub Library available called DateTimePicker, you can find more information here https://github.com/tarruda/bootstrap-datetimepicker ... it might be a little harder to configure for your exact needs but it's probably worth a look.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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