I am designing an app which will show a calendar with various different colours on days to denote events which are happening on each day, I have had a look at the Android calendar view but this does not offer the customisability that is needed.
Are there any such views that have the capability to change the style of individual days or am I better off creating a view from scratch?
I know it's pretty late but there is a library called ZCustomCalendar that allows you to define custom views for different types of dates.
I think your best chance is using some open-source library/project.
Although I've never used this, I think your best option is TimesSquare, from Square. They have produce some great android libraries so you should be able to trust them to keep up bug-free.
Some runners up from Google top results : Caldroid which seems to be somewhat customizable and Android Calendar View which you can use as a base and modify the code to tailor it to your needs.
Related
I'm trying to code a calendar page that highlights certain days with events on them. The calendar also needs to be able to disable certain dates from being clicked, such that the user is unable to select those dates. The designs of the calendar page are as follows:
I've looked for tutorials but was unable to find any that fits the requirements of my app, without using a library. Is there really no way to achieve this without the use of a library? And if I do have to use a library, how should I go about integrating it in this Xamarin application?
Any help or advice to point me in the right direction would be greatly appreciated. Thanks!
Your requirements can take time to implement, using a 3rd-party Library is what you might be looking for.
This library: XamForms.Controls.Calendar has some great controls as what I can see will suit your needs, over all it has a great documentation so give it a try!
Did you try the below link ?
https://github.com/rebeccaXam/XamForms.Controls.Calendar
There other UI library controls which you might be interested in
Xuni http://www.goxuni.com/672835-a-deep-look-at-the-new-xuni-calendar-control/
Syncfusion https://help.syncfusion.com/xamarin/sfcalendar/getting-started
Telerik http://www.telerik.com/xamarin-ui/calendar
I have created a custom calendar earlier which is very simple and show Month and Year view.You could give it a try.
You can check out the code from here:
https://github.com/bhavya27/BXCalendar
Blog: https://medium.com/#bhavyajoshi2793/custom-calendar-in-xamarin-for-android-ios-windows-578f1136daec
I'm trying to make a calendar in my app that behaves similar to the default Android calendar app, though simpler. I need it to display an icon (paperclip?) on indicated days. I've been looking at extending CalendarView, but
It only supports >3.0
The main class I'd need to override, WeekView, is private.
I might be able to work around the second point, but I need my application to at least support Froyo. I've looked briefly at others' implementations of CalendarViews, but they're either ugly or... ugly (and I'm not good at making things look good; I mostly rely on widgets that already look pretty).
Thanks!
I have been looking 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 :-)
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.
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:
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 :-).
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, there is a similarly undocumented/unsupported/open source widget in the Google I|O 2011 app.
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.
I really wanted to be able to re-use DayView, so I created the yadview project (https://code.google.com/p/yadview/). yadview is a fork of the DayView schedule in the AOSP Calendar app, but has been reworked significantly to allow for integration into any application.
Sample screenshot of an Activity with this View:
it seems android calendar api is not available. can you please give me some tips and tricks for creating a similar thing.just like creating events,meeting, birthday etc.. and also notification when the event occurs. and also layout should be similar to-our in-built calendar give me some ideas or hint about look and logic?
To send notifications, read creating status bar notifications.
To create layouts, read declaring layout, common layout objects, and hello GridView. There is an equivalent introductory tutorial for each layout type.
You can access the Calendar events through the Data API. However, the Android specific calendar APIs are not part of the public Android SDK. Thus, you could access them, but it is highly recommended that you do not since they are likely to change in future versions of the os.