Skip to content

This Android Demo Example Shows the Hirji(Islamic) and Gregorian Calendar. Developer can Customize the Calendar by import the Calendar library in Project and can use as MainActivity in example.

License

ghanshyam34/HirjiGregorianCalendar

Repository files navigation

HirjiGregorianCalendar

This Android Demo Example Shows the Hirji(Islamic) and Gregorian Calendar. Developer can use the Calendar by import the Calendar library in Project.

dependencies {
   implementation 'com.github.ghanshyam34:HirjiGregorianCalendar:9489b3cf70'
 }

##Getting Started

##Gregorian

MyCalendarView myCalendarView;
myCalendarView = MyCalendarView.getInstance(MainActivity.this,true);

myCalendarView.setOnDateSetListener(MainActivity.this);
myCalendarView.setMinMaxHijriYear(1430, 1450);
myCalendarView.setMinMaxGregorianYear(2013, 2020);
myCalendarView.setMode(MyCalendarView.Mode.Gregorian);
myCalendarView.setUILanguage(MyCalendarView.Language.English);
myCalendarView.setEnableScrolling(false);
myCalendarView.showDialog();

##Hirji

myCalendarView = MyCalendarView.getInstance(MainActivity.this,true);

myCalendarView.setOnDateSetListener(MainActivity.this);
myCalendarView.setMinMaxHijriYear(1430, 1450);
myCalendarView.setMinMaxGregorianYear(2013, 2020);
myCalendarView.setMode(MyCalendarView.Mode.Hijri);
myCalendarView.setUILanguage(MyCalendarView.Language.Arabic);
myCalendarView.setEnableScrolling(false);
myCalendarView.showDialog();

Please check the below screen shots

License

MIT

MIT License

Copyright (c) 2019 Ghanshyamp

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

This Android Demo Example Shows the Hirji(Islamic) and Gregorian Calendar. Developer can Customize the Calendar by import the Calendar library in Project and can use as MainActivity in example.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages