I have been trying so many library's and different codes to be able to achieve building custom calendar and be able to disable all week days except specific days.
im getting arraylist in API with list of days that are available to delivery,
so the calendar need to display the whole month disabled except the days that im getting from API for example: he can select every Friday and Saturday only.
You can use this library Material Date Time Picker, here you can set an option to show specific dates, For Example:
datePicker.setDisabledDays(Calendar[] days)
And an pass array of Calendar as a parameter which contains all the selectable date.Get all Fridays in a date Range in Java
You can always build your own calendar
here is a link to develop your own calendar in 7 setps:
https://medium.com/#avi_kr16/creating-a-simple-android-calendar-in-7-steps-fa18a7945350
hope it helps
Related
My academic project require displaying the current month's calendar with few details like number of visits a user has made on particular day. No other functionality is required like reminder, note, etc. I just need to display the following format. I searched many calendar APIs but unable to find one which serves the purpose. Your help would be highly appreciated.
You can create your own calendar with use of a View pager and GridView . As i can see you need to select multiple days in particular month, you need a a customized one .
Checkout these links with, you'll get an idea about it:
1.Caldroid
2.calendarview
These are some awesome work by the coders you can use this in your project and take the idea of building a calender on your own.Thx.
I would create in my application a weekly calendar, one week, like the school to understand. I would then add the events in the week. To do this I searched the old questions and libraries but could not find what I was looking for. Have you any idea how I can do this?
what I want to create should look like this
thank you
You can use this library for horizontal week view, and on click on each date you can show that days tasks.
The default calendarView shows only the days between the minimum and maximum days inclusive if I set a minimum and maximum date. Is there any way to make all the days visible but have them be grayed out or do I have to create/use a separate calendarView in order to get that functionality?
At present, this can't be done.
See Android CalendarView for Showing Events and the numerous linked questions for similar problems.
You can either create your own custom CalendarView, or use an external library that provides more functionality. The two popular ones look to be Caldroid and android-calendar-view.
I want to develop a student's timetable for an android application. For this I need to have a calendar to know the day and to check whether the day is a weekday(since saturday and sunday doesnt need a timetable).Can I get the calendar on the phone to do this or do I have to come up with one of my own?
Any help is much appreciated.Thanks.
You can use http://developer.android.com/reference/java/util/Calendar.html. http://developer.android.com/reference/android/text/format/DateUtils.html and http://developer.android.com/reference/android/util/TimeUtils.html are also worth looking into in general.
You can use http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Calendar.html
The java Calender API provide everything that you describe above.
i just wanna know is it possible to display the Calendar in the month view using the api available. i am searching for while dint find anything to display the calendar in the Month view . kindly help and let me know is this possible using android sdk1.5 or 1.6 or even 2.0. If not what would be the procedure to generate month view and highlighting the present date.
thank you for ur help.
regards
Sheik
Google Calender is not part of the SDK application, so it will be difficult to find a way to get the month view.
Keep in mind that the emulator does not have a Calender database, so if you were to test your application it would have to be loaded onto a real device in order to see any results.