Coder Social home page Coder Social logo

m-erfan-dm / persian-material-datepicker Goto Github PK

View Code? Open in Web Editor NEW
21.0 1.0 0.0 648 KB

Android library that offers Shamsi (Persian Calendar) support, complete with a Persian time picker, all seamlessly integrated with Google's Material Datepicker and Timepicker.

Java 100.00%
android calendar date-range-picker datepicker jalali java material material-design persian shamsi

persian-material-datepicker's Introduction

Persian Material Date And Time Picker

This library provides a Shamsi (Persian calendar) and Persian time picker, built using Google's Material Date and Time Picker.

Date Range Picker Date Picker Time Picker
Date Range Picker Date Picker Time Picker

Installation

repositories {
    maven { url 'https://jitpack.io' }
}

dependencies {
    implementation 'com.github.M-Erfan-Dm:persian-material-datepicker:1.0.1'
}

Usage

A date picker can be instantiated with MaterialDatePicker.Builder.datePicker():

val datePicker =
    MaterialDatePicker.Builder.datePicker()
        .setTitleText("انتخاب تاریخ")
        .build()

A date range picker can be instantiated with MaterialDatePicker.Builder.dateRangePicker():

val dateRangePicker =
    MaterialDatePicker.Builder.dateRangePicker()
        .setTitleText("انتخاب محدوده")
        .build()

A time picker can be instantiated with MaterialTimePicker.Builder

val picker =
    MaterialTimePicker.Builder()
        .setTimeFormat(TimeFormat.CLOCK_12H)
        .setHour(12)
        .setMinute(10)
        .setTitleText("انتخاب زمان جلسه")
        .build()

For more comprehensive documentation, please refer to the resources on the Google MaterialDatePicker and MaterialTimePicker libraries.

persian-material-datepicker's People

Contributors

m-erfan-dm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.