Customize CalendarView to allow individual days displayed differently - android

I have a calendar view and I want to customize individual days (say change color) under specific condition that I have. For example change the color of days if day is odd number or even number. Is there a way to do that?

I think maybe you can just modify android calender source code from here : https://github.com/android/platform_packages_apps_calendar
As I know, if you use calenderview, you can just use it, not modify it

Related

Changing day color in a Calendarview

I want to change if it is possible, only the background color/tint of all Sundays of the current month
like this pic, thank you for your time
This documentation should help you out. Using the getFirstDayofWeek() should get your Sunday and then using setWeekDayTextAppearance I'm assuming would allow you to change it. I haven't personally used CalendarView before but the documentation looks pretty straightforward.

Android Calender view color multiple dates and disable click

I am making an attendance app i want to highlight multiple dates where student is absent and also make calendar view not clickable.
only want to show calendar.
This question doesn't look, you have done any research.
However, you can use https://github.com/Applandeo/Material-Calendar-View
Pros:
Easily customizable. [I have used in 3-4 projects so far]
Fits in requirement like range picker, one-day selection (event based)
Lightweight library, few files/ less code. You can also strip off the unnecessary code of range picker and other if you want. As for me, the requirement was only One-day-picker
i want to highlight multiple dates where student is absent
You can create a list of object of EventDay which take the Calendar instance. You can pass it to the CalendarView. It will show the different event aka absentees in your case.
make calendar view not clickable
That's not the big deal, You can easily do that as CalendarView is a custom view itself.
This is my latest screenshot from one of my project. It work really well.

Using android timepicker as a number picker

My general problem is that I need to set a preference with a number from a finite list using something like a step size of 10 (or whatever). I know I can do this with the classic NumberPicker but I like the look of the TimePicker and was wondering if anyone has some idea of how to customize it to act as a more of a general number picker. It's probably fine with 12 values but it would be even better if you could have an arbitrary number of choices. Maybe there's a different widget that would get me something similar...
Here's a crude mockup of a dialog example
see How to create a number picker dialog?
you could set the timepicker to 24h format and get 1-24 range. But I wouldn't recommend it. The Bottom line is you pretty much need to design the xml and java class for your custom number picker.

how can create android calender event view

i want to create a view just like image. How can i accomplish this.I have seach about this but not able to create just like this view. Can any body help me.
I have create the calender but the unable to show the bars
Thanks
You can use Yadview library from this link : https://code.google.com/p/yadview
It loads, lays out and displays events. yadview is intended to be more robust in handling of events from various sources, rendering differently.
It works really good for me!
there is a library that you can use:
https://github.com/roomorama/Caldroid
Embedded as a fragment or shown as dialog
Set min/max date. The date outside min/max range is marked as disabled
Set disabled dates
Select dates fromDate to toDate
Client can listen to various events when user interacts with Calendar
Customize look and feel

Making Custom date picker in android?

I am sure,I think my question is something different in android.I goggled 100s of sites i saw the date picker in android, all are same type, no one give the different date picker.
My Task is to design custom date picker. Please find this below screen shot.
https://docs.google.com/file/d/0B_c-SDSO63obZzVreHpmdnZBYzg/edit?usp=sharing
For that I goggled, I didn't find any solution. I think, For android solutions this is the best site.
coming to my date picker it is totally dialog box. In that red symbol,name,close mark,submit i can do it. But i want that sun,man,tue,web In red color and on the top month and year. In below dates with green color picker. so Please tell me how can I do that task.
All advices are accepted.
Thanks&Regards
Shankar
Clite
I can only suggest how I would have gone for such a calendar. By the UI it is clear that it has to come as a pop-up or to better say a dialog. Now you have to google the opensource calendars if any or just using the calendar API provided by java you can get the calendar for a month year etc. and move it across previous month by normal java function calls.
Now that you have got the data to populate in your calendar. You have to design a custom layout xml create ~30-40 boxes or a grid with dynamic textviews or a webview with <table>, <tr>, <td> the choice is completely yours.
AFAIK
If you can't find anything opensource then I would suggest you should do these things by the suggested approach.

Categories

Resources