All Projects → alhazmy13 → HijriDatePicker

alhazmy13 / HijriDatePicker

Licence: Apache-2.0 license
Material (Gregorian - Hijri) Date & Time Picker

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to HijriDatePicker

Singledateandtimepicker
You can now select a date and a time with only one widget !
Stars: ✭ 921 (+619.53%)
Mutual labels:  time, dialog, picker
Vue Ctk Date Time Picker
VueJS component to select dates & time, including a range mode
Stars: ✭ 707 (+452.34%)
Mutual labels:  time, dialog, picker
Md Date Time Picker
An implementation of Material Design Picker components in vanilla CSS, JS, and HTML
Stars: ✭ 272 (+112.5%)
Mutual labels:  time, dialog, picker
React Native Modal Datetime Picker
A React-Native datetime-picker for Android and iOS
Stars: ✭ 2,412 (+1784.38%)
Mutual labels:  time, picker
Pickadate.js
The mobile-friendly, responsive, and lightweight jQuery date & time input picker.
Stars: ✭ 7,753 (+5957.03%)
Mutual labels:  time, picker
Date Picker
📅 Custom responsive date picker widget for Android, written in Kotlin.
Stars: ✭ 146 (+14.06%)
Mutual labels:  time, picker
Wmzdialog
功能最多样式最多的弹窗,支持普通/微信底部/日期/地区/日历/选择/编辑/分享/菜单/自定义弹窗等,支持多种动画,链式编程调用(Pop-up windows with the most functions and styles, support normal/WeChat bottom/date/region/calendar/select/edit/share/menu/custom pop-up windows, etc., support multiple animations, chain programming calls)
Stars: ✭ 673 (+425.78%)
Mutual labels:  time, dialog
SimpleDialogs
💬 A simple framework to help displaying dialogs on a WPF app
Stars: ✭ 24 (-81.25%)
Mutual labels:  dialogs, dialog
ngx-mat-timepicker
A true material timepicker
Stars: ✭ 45 (-64.84%)
Mutual labels:  time, picker
vscode-color
Helper with GUI to generate color codes such as CSS color notations.
Stars: ✭ 88 (-31.25%)
Mutual labels:  dialog, picker
silly-android
Android plugins for Java, making core Android APIs easy to use
Stars: ✭ 40 (-68.75%)
Mutual labels:  dialogs, dialog
React Picky Date Time
A react component for date time picker. Online demo examples
Stars: ✭ 31 (-75.78%)
Mutual labels:  time, picker
libcalendars
Collection of calendar arithmetic algorithms
Stars: ✭ 38 (-70.31%)
Mutual labels:  hijri, gregorian
HHChaosToolkit
A set of MVVM tookit class libraries for uwp platform.
Stars: ✭ 27 (-78.91%)
Mutual labels:  dialog, picker
Brpickerview
BRPickerView 封装的是iOS中常用的选择器组件,主要包括:日期选择器(支持年月日、年月等15种日期样式选择,支持设置星期、至今等)、地址选择器(支持省市区、省市、省三种地区选择)、自定义字符串选择器(支持单列、多列、二级联动、三级联动选择)。支持自定义主题样式,适配深色模式,支持将选择器组件添加到指定容器视图。
Stars: ✭ 2,149 (+1578.91%)
Mutual labels:  time, picker
clocklet
An opinionated clock-style vanilla-js timepicker.
Stars: ✭ 31 (-75.78%)
Mutual labels:  time, picker
flutter jd address selector
京东地址选择器
Stars: ✭ 26 (-79.69%)
Mutual labels:  dialog, picker
Linear Time Picker
Gorgeous Android Time and Date picker library inspired by the Timely app
Stars: ✭ 613 (+378.91%)
Mutual labels:  time, picker
React Timekeeper
Google Keep app inspired time picker for react 🕓
Stars: ✭ 651 (+408.59%)
Mutual labels:  time, picker
whatisnewdialog
An Android library for displaying a dialog where it presents new features in the app.
Stars: ✭ 22 (-82.81%)
Mutual labels:  dialogs, dialog

Hijri Date Picker (UmAlQuraCalendar)

This library offers a hijri (Islamic Calendar) Date Picker designed on Google's Material Design Principals For Pickers for Android 5.0 (API 21) +.

Demo Hijri
Time Gregorian

You can report any issue on issues page. Note: If you speak Arabic, you can submit issues with Arabic language and I will check them. :)

Installation

Maven

<dependency>
<groupId>net.alhazmy13.hijridatepicker</groupId>
<artifactId>library</artifactId>
<version>3.0.0</version>
</dependency>

Gradle

dependencies {
	compile 'net.alhazmy13.hijridatepicker:library:3.0.0'
}

Usage

The library follows the same API as other pickers in the Android framework. After adding the library, you need to:

  1. Implement an onDateSet
  2. Create a HijriCalendarDialog using the supplied factory
  3. Theme the pickers

Implement an OnTimeSetListener/OnDateSetListener

In order to receive the date set in the picker, you will need to implement the OnDateSetListener interfaces. Typically this will be the Dialog that creates the Pickers. The callbacks use the same API as the standard Android pickers.

Note: Months start from 0.

 // TimePickerDialog
 @Override
    public void onTimeSet(TimePickerDialog view, int hourOfDay, int minute, int second) {
        // YOUR CODE
    }
 // GregorianDatePickerDialog
   @Override
    public void onDateSet(GregorianDatePickerDialog view, int year, int monthOfYear, int dayOfMonth) {
        //YOUR CODE
    }
    
    // HijriDatePickerDialog
       @Override
    public void onDateSet(HijriDatePickerDialog view, int year, int monthOfYear, int dayOfMonth) {
        //YOUR CODE
    }
    

Create a GregorianDatePickerDialog

You will need to create a new instance of GregorianDatePickerDialog . Once the dialogs are configured, you can call show().

Calendar now = Calendar.getInstance();
GregorianDatePickerDialog dpd = GregorianDatePickerDialog.newInstance(
		  this,
		  now.get(Calendar.YEAR),
		  now.get(Calendar.MONTH),
		  now.get(Calendar.DAY_OF_MONTH));
dpd.show(getFragmentManager(), "GregorianDatePickerDialog");

Create a HijriDatePickerDialog

Same as GregorianDatePickerDialog but you need to use UmmalquraCalendar insted of Calendar class.

UmmalquraCalendar now = new UmmalquraCalendar();
HijriDatePickerDialog dpd = HijriDatePickerDialog.newInstance(
		  this,
		  now.get(UmmalquraCalendar.YEAR),
		  now.get(UmmalquraCalendar.MONTH),
		  now.get(UmmalquraCalendar.DAY_OF_MONTH));
dpd.show(getFragmentManager(), "HijriDatePickerDialog");

TimePickerDialog

Calendar now = Calendar.getInstance();
TimePickerDialog tpd = TimePickerDialog.newInstance(
                        this,
                        now.get(Calendar.HOUR_OF_DAY),
                        now.get(Calendar.MINUTE),
                        mode24Hours.isChecked()
                );

Credits

License

Copyright 2015 alhazmy

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].