I am trying to use the object CalendarView in my XML file and appears good, but I have one problem.
I want to create Two buttons to go forward and move backwards month by month.
Another option is that I could create a ScrollViewHorizontal to show month by month.
Can anyone help me to do this??
Thank you so much.
CalendarView cannot be used as it is in the way that you are asking. There are many 3rd party libraries that you can see. Here is one which is really good. https://github.com/roomorama/Caldroid
Related
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.
I want to show a user with a calendar where multiple dates are selected.
While this could be easily achieved using Material Calendar View but I prefer not to use dependency for this simple task.
How could I achieve this by extending android CalendarView?
Please help
I would refer you to a comment on How to highlight multiple dates in Android CalendarView.
It basically says CalendarView does not support this, and that the point of CalendarView is to allow the user to choose a date.
Good luck!
I want to display a DatePicker, that contains only a calendar, but i get this kind of bug:
Screen with error
I found some people had this kind of problem too, but have somebody found a solution for this?
It occurs on Api > 21, most of resolutions.
Found out that this can be easily reproduced after we set the Setting->Display->Display Size to Large. And then go to a month that needs to show 6 rows. The Google Calendar app have the same problem.
So it should be a bug in the DatePicker. The only easy solution is to change the datepicker to the spinner style.
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
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.