Skip to content

Custom CalendarView with selecting StartDay, EndDay for Android Application, written in Java and Kotlin

License

Notifications You must be signed in to change notification settings

naseemakhtar994/SectionCalendarView

 
 

Repository files navigation

SectionCalendarView CircleCI

Kotlin GitHub license Android Arsenal

Custom CalendarView with selecting StartDay, EndDay for Android Application, written in Java and Kotlin

Usages

rootProject/build.gradle

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

app/build.gradle

dependencies {
    implementation 'com.github.WindSekirun:SectionCalendarView:1.0.3'
}

XML

<pyxis.uzuki.live.sectioncalendarview.SectionCalendarView
        android:layout_width="match_parent"
        android:layout_height="340dp"
        android:layout_marginTop="10dp"
        android:id="@+id/calendarView" />

Kotlin

calendarView.setDateFormat("yyyy MMM")
calendarView.setErrToastMessage("You can not select the previous date.")
calendarView.setOnDaySelectedListener { startDay, endDay ->
    txtStartDay.text = startDay
    txtEndDay.text = endDay
}
calendarView.buildCalendar()

Java

calendarView.setDateFormat("yyyy MMM");
calendarView.setErrToastMessage("You can not select the previous date.");
calendarView.setOnDaySelectedListener((startDay, endDay) -> {
    txtStartDay.setText(startDay);
    txtEndDay.setText(endDay);
});
calendarView.buildCalendar();

License

Copyright 2017 WindSekirun (DongGil, Seo)

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.

About

Custom CalendarView with selecting StartDay, EndDay for Android Application, written in Java and Kotlin

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Java 64.6%
  • Kotlin 35.4%