I have to program in Android a calendar that shows a month, that I can slide horizontally to show other months. I tried with the calendarview but it's an infinite scrollable calendar, I need to show a month at once.
One more thing: how can I change the color and the style of a single day in the calendar? For example, to show in which days there are events and in which not.
Thank you very much in advance!
Related
I'm trying to build a custom datepicker dialog. I used CalendarView instead of DatePicker since I didn't want the header used in DatePicker. This is how it looks now.
And this is what I want to achieve.
The future and previous dates should be visible. If clicked on future month's date, calendar should scroll to next month.
I couldn't find any properties/functions in CalendarView class to achieve this. Is there any other way to achieve this? Is there any 3rd party open-source library that does this?
I've been looking for a while how to try to make a calendar composable, since from what I've seen they haven't currently developed a calendar component like there used to be with XML.
In principle, the idea is to have a calendar that shows a month with all its days, and when clicking on an arrow, it shows the rest of the months, and with a list of days that comes from the service, the corresponding days are marked in one colour, and the current day in another colour.
Helo,
I've got a calendar view, which displays every hour amond each other.
Now I want to add some LinearLayouts, so that my Events in my calendar are added.
But now the problem: What if there are several Events at the same time?
The first problem is, that the green box has to fit the screen under the blue and yellow box.
The second problem is, that the violet box has to be shown at the first column if there is no space available.
Does anybody know a good algorithm to solve this problem?
Thank you.
Calendar view
Android's new DatePicker widget shows a large date text at the top, but I really don't need it. It's wasting a lot of space. Is there a way to hide that, and show only the calendar below.
Just use CalendarView, which does not show the header and has all the same methods.
I am having some UI problems with the DatePicker. Setting dates in my app relies on the day of the week, which the DatePicker lacks without the calendar, so I am using the calendar so the user can see the day of the week. The only problem is, it displays them side to side like this:
Which makes the calendar appear very cramped, especially because this is on a mobile device, so the numbers are very small. Is there a way to make the orientation change, where the slider is on the top and the calendar is on the bottom? The calendar looks much better when it doesn't have the slider next to it as it is bigger, but I need both the slider and calendar.