SectionCalendarView

Additional

Language
Java
Version
1.0.5.1 (Mar 26, 2018)
Created
Dec 20, 2017
Updated
Mar 26, 2018
Owner
WindSekirun (DongGil, Seo) (WindSekirun)
Contributor
WindSekirun (DongGil, Seo) (WindSekirun)
1
Activity
Badge
Generate
Download
Source code
APK file

Announcement

SectionCalendarView

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.5.1'
}

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.setPreventPreviousDate(true)
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.setPreventPreviousDate(true);
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.