How to make combine Gregorian and Hijri calendar in Android? - android

I need a combined Gregorian and Hijri calendar, I found this Hijri calendar on github, and it helpful for me, but i couldn't show Gregorian type on it. my question is: should I modify on source code of it, or should I custom Android calendar view widget?
If should I custom on Android calendar view widget, how I can do that?

I solved my problem by learn a concept of calendar view, it is easy to learn from this topic read it carefully.
Once you learned how to build a custom calendar, then you should build your own one.

Related

Build calendar and disable specific days

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

How can I display monthly Calendar view in Android as required?

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.

How to create a calendar of single week as scooll calendar

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.

Specific date in advance

Is there any easy way or a function to get what will be the date two weeks in advance? For example what will be the date after two weeks from now. I have checked Date() function and it doesn't look to have this functionality. The only way I can think of now is to hard code it, but I was hoping someone knows a better approach.
I can't comment so I'll post this as an answer.
This question has already an answer here: How to add 7 days to current date while not going over available days of a month?
You need to use the Calendar class.
Check Joda Time Lib.
i found something may help you using this lib check this
Use this code :
Calendar cal = Calendar.getInstance();
cal.add(Calendar.DATE, +14);
Log.d("Date two weeks in advance is ",""+cal.getTime());

how to implement calendar with month+week+day view

i am developing an android app and i need activity which contains calendar view which can be viewed with day, week and month view.
i searched everywere but didnt find anything that work,
Thanks!
Your question isn't a proper question but a code request. However, If I had to make a calendar would begin learning how to use Calendar View an Android widget since API 11. For example, with this tutorial: http://examples.javacodegeeks.com/android/core/widget/android-calendarview-example/

Categories

Resources