├── .gitignore
├── Jenkinsfile
├── LICENSE.md
├── README.md
├── build.gradle
├── demo
├── .gitignore
├── build.gradle
├── proguard-rules.pro
└── src
│ └── main
│ ├── AndroidManifest.xml
│ ├── java
│ └── pyxis
│ │ └── uzuki
│ │ └── live
│ │ └── sectioncalendarview
│ │ └── demo
│ │ ├── JavaActivity.java
│ │ ├── KotlinActivity.kt
│ │ └── MainActivity.kt
│ └── res
│ ├── drawable-v24
│ └── ic_launcher_foreground.xml
│ ├── drawable
│ └── ic_launcher_background.xml
│ ├── layout
│ ├── activity_main.xml
│ └── activity_sample.xml
│ ├── mipmap-anydpi-v26
│ ├── ic_launcher.xml
│ └── ic_launcher_round.xml
│ ├── mipmap-hdpi
│ ├── ic_launcher.png
│ └── ic_launcher_round.png
│ ├── mipmap-mdpi
│ ├── ic_launcher.png
│ └── ic_launcher_round.png
│ ├── mipmap-xhdpi
│ ├── ic_launcher.png
│ └── ic_launcher_round.png
│ ├── mipmap-xxhdpi
│ ├── ic_launcher.png
│ └── ic_launcher_round.png
│ ├── mipmap-xxxhdpi
│ ├── ic_launcher.png
│ └── ic_launcher_round.png
│ └── values
│ ├── colors.xml
│ ├── strings.xml
│ └── styles.xml
├── docs
├── -section-calendar-view
│ ├── alltypes
│ │ └── index.html
│ ├── index-outline.html
│ ├── index.html
│ ├── package-list
│ ├── pyxis.uzuki.live.sectioncalendarview.adapter
│ │ ├── -calendar-adapter
│ │ │ ├── -init-.html
│ │ │ ├── get-count.html
│ │ │ ├── get-item-id.html
│ │ │ ├── get-item.html
│ │ │ ├── get-view.html
│ │ │ ├── index.html
│ │ │ ├── is-start.html
│ │ │ ├── notify-data-set-changed.html
│ │ │ ├── set-end-day.html
│ │ │ ├── set-end.html
│ │ │ ├── set-start-day.html
│ │ │ └── set-start.html
│ │ └── index.html
│ ├── pyxis.uzuki.live.sectioncalendarview.impl
│ │ ├── -on-day-selected-listener
│ │ │ ├── index.html
│ │ │ └── on-day-selected.html
│ │ └── index.html
│ ├── pyxis.uzuki.live.sectioncalendarview.model
│ │ ├── -color-data
│ │ │ ├── -builder
│ │ │ │ ├── -init-.html
│ │ │ │ ├── build.html
│ │ │ │ ├── index.html
│ │ │ │ ├── set-default-bg-color.html
│ │ │ │ ├── set-default-text-color.html
│ │ │ │ ├── set-end-day-bg-color.html
│ │ │ │ ├── set-end-day-text-color.html
│ │ │ │ ├── set-prev-day-text-color.html
│ │ │ │ ├── set-selected-day-bg-color.html
│ │ │ │ ├── set-start-day-bg-color.html
│ │ │ │ ├── set-start-day-text-color.html
│ │ │ │ └── set-today-text-color.html
│ │ │ ├── -init-.html
│ │ │ ├── default-bg-color.html
│ │ │ ├── default-text-color.html
│ │ │ ├── end-day-bg-color.html
│ │ │ ├── end-day-text-color.html
│ │ │ ├── index.html
│ │ │ ├── prev-day-text-color.html
│ │ │ ├── selected-day-bg-color.html
│ │ │ ├── start-day-bg-color.html
│ │ │ ├── start-day-text-color.html
│ │ │ └── today-text-color.html
│ │ ├── -day-data
│ │ │ ├── -init-.html
│ │ │ ├── day-str.html
│ │ │ ├── day.html
│ │ │ ├── full-day.html
│ │ │ ├── index.html
│ │ │ ├── month.html
│ │ │ └── year.html
│ │ └── index.html
│ ├── pyxis.uzuki.live.sectioncalendarview.utils
│ │ ├── assign-pad10.html
│ │ ├── compare-day-equal.html
│ │ ├── compare-day-great-equal.html
│ │ ├── compare-day-great.html
│ │ ├── compare-day-less-equal.html
│ │ ├── compare-day-less.html
│ │ ├── compare-equal.html
│ │ ├── compare-greater-equal.html
│ │ ├── compare-greater.html
│ │ ├── compare-less-equal.html
│ │ ├── compare-less.html
│ │ ├── index.html
│ │ ├── kotlin.-string
│ │ │ ├── index.html
│ │ │ └── to-int-or-zero.html
│ │ └── not-empty-string.html
│ └── pyxis.uzuki.live.sectioncalendarview
│ │ ├── -section-calendar-view
│ │ ├── -init-.html
│ │ ├── build-calendar.html
│ │ ├── clear-date.html
│ │ ├── done.html
│ │ ├── go-to-next-month.html
│ │ ├── go-to-prev-month.html
│ │ ├── index.html
│ │ ├── on-item-click.html
│ │ ├── set-color-data.html
│ │ ├── set-date-format.html
│ │ ├── set-err-toast-message.html
│ │ └── set-on-day-selected-listener.html
│ │ └── index.html
├── index.html
└── style.css
├── gradle.properties
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
├── library
├── .gitignore
├── build.gradle
├── proguard-rules.pro
└── src
│ └── main
│ ├── AndroidManifest.xml
│ ├── java
│ └── pyxis
│ │ └── uzuki
│ │ └── live
│ │ └── sectioncalendarview
│ │ ├── SectionCalendarView.java
│ │ ├── adapter
│ │ └── CalendarAdapter.java
│ │ ├── impl
│ │ └── OnDaySelectedListener.java
│ │ ├── model
│ │ ├── ColorData.kt
│ │ └── DayData.kt
│ │ └── utils
│ │ ├── CommonEx.kt
│ │ └── InternalEx.kt
│ └── res
│ ├── drawable-hdpi
│ ├── ic_arrow_left.png
│ └── ic_arrow_right.png
│ ├── drawable-mdpi
│ ├── ic_arrow_left.png
│ └── ic_arrow_right.png
│ ├── drawable-xhdpi
│ ├── ic_arrow_left.png
│ └── ic_arrow_right.png
│ ├── drawable-xxhdpi
│ ├── ic_arrow_left.png
│ └── ic_arrow_right.png
│ ├── drawable-xxxhdpi
│ ├── ic_arrow_left.png
│ └── ic_arrow_right.png
│ ├── layout
│ ├── calendar_item.xml
│ └── calendar_view.xml
│ ├── values-ko
│ └── strings.xml
│ └── values
│ └── strings.xml
├── sample.png
└── settings.gradle
/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/workspace.xml
5 | /.idea/libraries
6 | .DS_Store
7 | /build
8 | /captures
9 | .externalNativeBuild
10 | .idea/
11 | .gradle/
--------------------------------------------------------------------------------
/Jenkinsfile:
--------------------------------------------------------------------------------
1 | @Library('jenkins-shared-library')_
2 | pipeline {
3 | agent any
4 | stages {
5 | stage ('Start') {
6 | steps {
7 | sendNotifications 'STARTED'
8 | }
9 | }
10 | stage('Make Environment') {
11 | parallel {
12 | stage('Touch local.properties') {
13 | steps {
14 | sh 'echo "sdk.dir=/opt/android-sdk-linux" >> local.properties'
15 | }
16 | }
17 | stage('Display directory') {
18 | steps {
19 | sh 'ls -la'
20 | }
21 | }
22 | }
23 | }
24 | stage('permission') {
25 | steps {
26 | sh 'chmod 777 gradlew'
27 | }
28 | }
29 | stage('assembleDebug') {
30 | steps {
31 | sh './gradlew assembleDebug --stacktrace'
32 | }
33 | }
34 | }
35 | post {
36 | always {
37 | sendNotifications currentBuild.result
38 | }
39 | }
40 | environment {
41 | GOOGLE_SERVICES_JSON = ''
42 | }
43 | }
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # SectionCalendarView [](https://jitpack.io/#WindSekirun/SectionCalendarView)
2 |
3 | [](http://kotlinlang.org) [](http://www.apache.org/licenses/LICENSE-2.0) [](https://android-arsenal.com/details/1/6807)
4 |
5 |
6 |
7 | Custom CalendarView with selecting StartDay, EndDay for Android Application, written in Java and [Kotlin](http://kotlinlang.org)
8 |
9 | ### Usages
10 |
11 | *rootProject/build.gradle*
12 | ```
13 | allprojects {
14 | repositories {
15 | maven { url 'https://jitpack.io' }
16 | }
17 | }
18 | ```
19 |
20 | *app/build.gradle*
21 | ```
22 | dependencies {
23 | implementation 'com.github.WindSekirun:SectionCalendarView:1.0.5.1'
24 | }
25 | ```
26 |
27 | #### XML
28 |
29 | ```XML
30 |
35 | ```
36 |
37 | #### Kotlin
38 |
39 | ```Kotlin
40 | calendarView.setDateFormat("yyyy MMM")
41 | calendarView.setPreventPreviousDate(true)
42 | calendarView.setErrToastMessage("You can not select the previous date.")
43 | calendarView.setOnDaySelectedListener { startDay, endDay ->
44 | txtStartDay.text = startDay
45 | txtEndDay.text = endDay
46 | }
47 | calendarView.buildCalendar()
48 | ```
49 |
50 | #### Java
51 |
52 | ```Java
53 | calendarView.setDateFormat("yyyy MMM");
54 | calendarView.setPreventPreviousDate(true);
55 | calendarView.setErrToastMessage("You can not select the previous date.");
56 | calendarView.setOnDaySelectedListener((startDay, endDay) -> {
57 | txtStartDay.setText(startDay);
58 | txtEndDay.setText(endDay);
59 | });
60 | calendarView.buildCalendar();
61 | ```
62 |
63 | ### License
64 |
65 | ```
66 | Copyright 2017 WindSekirun (DongGil, Seo)
67 |
68 | Licensed under the Apache License, Version 2.0 (the "License");
69 | you may not use this file except in compliance with the License.
70 | You may obtain a copy of the License at
71 |
72 | http://www.apache.org/licenses/LICENSE-2.0
73 |
74 | Unless required by applicable law or agreed to in writing, software
75 | distributed under the License is distributed on an "AS IS" BASIS,
76 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
77 | See the License for the specific language governing permissions and
78 | limitations under the License.
79 | ```
80 |
--------------------------------------------------------------------------------
/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | ext.kotlin_version = '1.2.10'
5 | repositories {
6 | google()
7 | jcenter()
8 | }
9 | dependencies {
10 | classpath 'com.android.tools.build:gradle:3.0.1'
11 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
12 | classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:0.9.15"
13 | // NOTE: Do not place your application dependencies here; they belong
14 | // in the individual module build.gradle files
15 | }
16 | }
17 |
18 | allprojects {
19 | repositories {
20 | google()
21 | jcenter()
22 | maven { url 'https://jitpack.io' }
23 | }
24 | }
25 |
26 | task clean(type: Delete) {
27 | delete rootProject.buildDir
28 | }
29 |
--------------------------------------------------------------------------------
/demo/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 | /docs/
3 |
--------------------------------------------------------------------------------
/demo/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 | apply plugin: 'kotlin-android'
3 | apply plugin: 'kotlin-android-extensions'
4 |
5 | android {
6 | compileSdkVersion 26
7 |
8 |
9 |
10 | defaultConfig {
11 | applicationId "pyxis.uzuki.live.sectioncalendarview.demo"
12 | minSdkVersion 16
13 | targetSdkVersion 26
14 | versionCode 1
15 | versionName "1.0"
16 |
17 | }
18 |
19 | buildTypes {
20 | release {
21 | minifyEnabled false
22 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
23 | }
24 | }
25 |
26 | compileOptions {
27 | sourceCompatibility JavaVersion.VERSION_1_8
28 | targetCompatibility JavaVersion.VERSION_1_8
29 | }
30 | }
31 |
32 | dependencies {
33 | implementation fileTree(include: ['*.jar'], dir: 'libs')
34 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
35 | implementation 'com.android.support:appcompat-v7:26.1.0'
36 | implementation project(':library')
37 | implementation 'com.github.WindSekirun:RichUtilsKt:2.0.4'
38 | implementation 'com.github.WindSekirun:PyxInjector:1.1.5'
39 | }
--------------------------------------------------------------------------------
/demo/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
22 |
--------------------------------------------------------------------------------
/demo/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/demo/src/main/java/pyxis/uzuki/live/sectioncalendarview/demo/JavaActivity.java:
--------------------------------------------------------------------------------
1 | package pyxis.uzuki.live.sectioncalendarview.demo;
2 |
3 | import android.os.Bundle;
4 | import android.support.annotation.Nullable;
5 | import android.widget.TextView;
6 |
7 | import pyxis.uzuki.live.pyxinjector.annotation.BindView;
8 | import pyxis.uzuki.live.pyxinjector.annotation.OnClick;
9 | import pyxis.uzuki.live.pyxinjector.base.InjectActivity;
10 | import pyxis.uzuki.live.sectioncalendarview.SectionCalendarView;
11 |
12 | /**
13 | * SectionCalendarView
14 | * Class: JavaActivity
15 | * Created by Pyxis on 2017-12-20.
16 | */
17 |
18 | public class JavaActivity extends InjectActivity {
19 | private @BindView TextView txtStartDay;
20 | private @BindView TextView txtEndDay;
21 | private @BindView SectionCalendarView calendarView;
22 |
23 | @Override
24 | protected void onCreate(@Nullable Bundle savedInstanceState) {
25 | super.onCreate(savedInstanceState);
26 | setContentView(R.layout.activity_sample);
27 |
28 | init();
29 | }
30 |
31 | private void init() {
32 | calendarView.setDateFormat("yyyy MMM");
33 | calendarView.setErrToastMessage("You can not select the previous date.");
34 | calendarView.setOnDaySelectedListener((startDay, endDay) -> {
35 | txtStartDay.setText(startDay);
36 | txtEndDay.setText(endDay);
37 | });
38 | calendarView.buildCalendar();
39 | }
40 |
41 | @OnClick(R.id.btnClear)
42 | private void clickClear() {
43 | calendarView.clearDate();
44 | }
45 |
46 | @OnClick(R.id.btnDone)
47 | private void clickDone() {
48 | calendarView.sendNowValue();
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/demo/src/main/java/pyxis/uzuki/live/sectioncalendarview/demo/KotlinActivity.kt:
--------------------------------------------------------------------------------
1 | package pyxis.uzuki.live.sectioncalendarview.demo
2 |
3 | import android.annotation.SuppressLint
4 | import android.os.Bundle
5 | import android.support.v7.app.AppCompatActivity
6 | import kotlinx.android.synthetic.main.activity_sample.*
7 |
8 | /**
9 | * SectionCalendarView
10 | * Class: KotlinActivity
11 | * Created by Pyxis on 2017-12-20.
12 | */
13 |
14 | class KotlinActivity : AppCompatActivity() {
15 |
16 | override fun onCreate(savedInstanceState: Bundle?) {
17 | super.onCreate(savedInstanceState)
18 | setContentView(R.layout.activity_sample)
19 |
20 | init()
21 | }
22 |
23 | @SuppressLint("SetTextI18n")
24 | private fun init() {
25 | calendarView.setDateFormat("yyyy MMM")
26 | calendarView.setPreventPreviousDate(false)
27 | calendarView.setErrToastMessage("You can not select the previous date.")
28 | calendarView.setOnDaySelectedListener { startDay, endDay ->
29 | txtStartDay.text = startDay
30 | txtEndDay.text = endDay
31 | }
32 | calendarView.buildCalendar()
33 |
34 | btnClear.setOnClickListener { v -> calendarView.clearDate() }
35 | btnDone.setOnClickListener { v -> calendarView.sendNowValue() }
36 | }
37 | }
--------------------------------------------------------------------------------
/demo/src/main/java/pyxis/uzuki/live/sectioncalendarview/demo/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package pyxis.uzuki.live.sectioncalendarview.demo
2 |
3 | import android.content.Intent
4 | import android.os.Bundle
5 | import android.support.v7.app.AppCompatActivity
6 | import kotlinx.android.synthetic.main.activity_main.*
7 |
8 | class MainActivity : AppCompatActivity() {
9 |
10 | override fun onCreate(savedInstanceState: Bundle?) {
11 | super.onCreate(savedInstanceState)
12 | setContentView(R.layout.activity_main)
13 |
14 | btnKotlin.setOnClickListener {
15 | startActivity(Intent(this@MainActivity, KotlinActivity::class.java))
16 | }
17 |
18 | btnJava.setOnClickListener {
19 | startActivity(Intent(this@MainActivity, JavaActivity::class.java))
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/demo/src/main/res/drawable-v24/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
12 |
13 |
19 |
22 |
25 |
26 |
27 |
28 |
34 |
35 |
--------------------------------------------------------------------------------
/demo/src/main/res/drawable/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
15 |
20 |
25 |
30 |
35 |
40 |
45 |
50 |
55 |
60 |
65 |
70 |
75 |
80 |
85 |
90 |
95 |
100 |
105 |
110 |
115 |
120 |
125 |
130 |
135 |
140 |
145 |
150 |
155 |
160 |
165 |
170 |
171 |
--------------------------------------------------------------------------------
/demo/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
16 |
17 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/demo/src/main/res/layout/activity_sample.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
13 |
14 |
19 |
20 |
27 |
28 |
36 |
37 |
38 |
43 |
44 |
51 |
52 |
60 |
61 |
62 |
63 |
68 |
69 |
75 |
76 |
82 |
83 |
84 |
89 |
90 |
91 |
--------------------------------------------------------------------------------
/demo/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/demo/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/demo/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindSekirun/SectionCalendarView/2505666b666e9d68718bc72da7edd46b9d43187d/demo/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/demo/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindSekirun/SectionCalendarView/2505666b666e9d68718bc72da7edd46b9d43187d/demo/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/demo/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindSekirun/SectionCalendarView/2505666b666e9d68718bc72da7edd46b9d43187d/demo/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/demo/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindSekirun/SectionCalendarView/2505666b666e9d68718bc72da7edd46b9d43187d/demo/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/demo/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindSekirun/SectionCalendarView/2505666b666e9d68718bc72da7edd46b9d43187d/demo/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/demo/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindSekirun/SectionCalendarView/2505666b666e9d68718bc72da7edd46b9d43187d/demo/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/demo/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindSekirun/SectionCalendarView/2505666b666e9d68718bc72da7edd46b9d43187d/demo/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/demo/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindSekirun/SectionCalendarView/2505666b666e9d68718bc72da7edd46b9d43187d/demo/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/demo/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindSekirun/SectionCalendarView/2505666b666e9d68718bc72da7edd46b9d43187d/demo/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/demo/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindSekirun/SectionCalendarView/2505666b666e9d68718bc72da7edd46b9d43187d/demo/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/demo/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 |
7 |
--------------------------------------------------------------------------------
/demo/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | SectionCalendarView demo
3 |
4 |
--------------------------------------------------------------------------------
/demo/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/alltypes/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | alltypes - SectionCalendarView
5 |
6 |
7 |
8 | All Types
9 |
79 |
80 |
81 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView
9 |
10 | Packages
11 |
50 | Index
51 | All Types
52 |
53 |
54 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/package-list:
--------------------------------------------------------------------------------
1 | $dokka.format:html
2 | $dokka.linkExtension:html
3 | $dokka.location:pyxis.uzuki.live.sectioncalendarview.utils$toIntOrZero(kotlin.String)pyxis.uzuki.live.sectioncalendarview.utils/kotlin.-string/to-int-or-zero.html
4 | pyxis.uzuki.live.sectioncalendarview
5 | pyxis.uzuki.live.sectioncalendarview.adapter
6 | pyxis.uzuki.live.sectioncalendarview.impl
7 | pyxis.uzuki.live.sectioncalendarview.model
8 | pyxis.uzuki.live.sectioncalendarview.utils
9 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.adapter/-calendar-adapter/-init-.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CalendarAdapter. - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.adapter / CalendarAdapter / <init>
9 |
10 | <init>
11 |
12 | CalendarAdapter ( mContext : Context , colorData : ColorData )
13 |
14 | CalendarAdapter ( mContext : Context , colorData : ColorData )
15 |
16 |
17 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.adapter/-calendar-adapter/get-count.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CalendarAdapter.getCount - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.adapter / CalendarAdapter / getCount
9 |
10 | getCount
11 |
12 | open fun getCount ( ) : Int
13 |
14 | open fun getCount ( ) : Int
15 |
16 |
17 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.adapter/-calendar-adapter/get-item-id.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CalendarAdapter.getItemId - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.adapter / CalendarAdapter / getItemId
9 |
10 | getItemId
11 |
12 | open fun getItemId ( position : Int ) : Long
13 |
14 | open fun getItemId ( position : Int ) : Long
15 |
16 |
17 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.adapter/-calendar-adapter/get-item.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CalendarAdapter.getItem - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.adapter / CalendarAdapter / getItem
9 |
10 | getItem
11 |
12 | open fun getItem ( position : Int ) : DayData
13 |
14 | open fun getItem ( position : Int ) : DayData
15 |
16 |
17 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.adapter/-calendar-adapter/get-view.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CalendarAdapter.getView - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.adapter / CalendarAdapter / getView
9 |
10 | getView
11 |
12 | open fun getView ( position : Int , convertView : View , parent : ViewGroup ) : View
13 |
14 | open fun getView ( position : Int , convertView : View , parent : ViewGroup ) : View
15 |
16 |
17 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.adapter/-calendar-adapter/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CalendarAdapter - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.adapter / CalendarAdapter
9 |
10 | CalendarAdapter
11 |
12 | open class CalendarAdapter : BaseAdapter
13 |
14 | open class CalendarAdapter : BaseAdapter
15 | SectionCalendarView Class: CalendarAdapter Created by Pyxis on 2017-12-20.
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.adapter/-calendar-adapter/is-start.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CalendarAdapter.isStart - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.adapter / CalendarAdapter / isStart
9 |
10 | isStart
11 |
12 | open fun isStart ( ) : Boolean
13 |
14 | open fun isStart ( ) : Boolean
15 |
16 |
17 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.adapter/-calendar-adapter/notify-data-set-changed.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CalendarAdapter.notifyDataSetChanged - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.adapter / CalendarAdapter / notifyDataSetChanged
9 |
10 | notifyDataSetChanged
11 |
12 | open fun notifyDataSetChanged ( list : ArrayList < DayData > ) : Unit
13 |
14 | open fun notifyDataSetChanged ( list : ArrayList < DayData > ) : Unit
15 |
16 |
17 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.adapter/-calendar-adapter/set-end-day.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CalendarAdapter.setEndDay - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.adapter / CalendarAdapter / setEndDay
9 |
10 | setEndDay
11 |
12 | open fun setEndDay ( endDay : String ) : Unit
13 |
14 | open fun setEndDay ( endDay : String ) : Unit
15 |
16 |
17 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.adapter/-calendar-adapter/set-end.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CalendarAdapter.setEnd - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.adapter / CalendarAdapter / setEnd
9 |
10 | setEnd
11 |
12 | open fun setEnd ( end : Boolean ) : Unit
13 |
14 | open fun setEnd ( end : Boolean ) : Unit
15 |
16 |
17 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.adapter/-calendar-adapter/set-start-day.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CalendarAdapter.setStartDay - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.adapter / CalendarAdapter / setStartDay
9 |
10 | setStartDay
11 |
12 | open fun setStartDay ( startDay : String ) : Unit
13 |
14 | open fun setStartDay ( startDay : String ) : Unit
15 |
16 |
17 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.adapter/-calendar-adapter/set-start.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CalendarAdapter.setStart - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.adapter / CalendarAdapter / setStart
9 |
10 | setStart
11 |
12 | open fun setStart ( start : Boolean ) : Unit
13 |
14 | open fun setStart ( start : Boolean ) : Unit
15 |
16 |
17 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.adapter/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | pyxis.uzuki.live.sectioncalendarview.adapter - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.adapter
9 |
10 | Package pyxis.uzuki.live.sectioncalendarview.adapter
11 | Types
12 |
13 |
14 |
15 |
16 | CalendarAdapter
17 |
18 |
19 | open class CalendarAdapter : BaseAdapter
20 | open class CalendarAdapter : BaseAdapter
21 | SectionCalendarView Class: CalendarAdapter Created by Pyxis on 2017-12-20.
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.impl/-on-day-selected-listener/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | OnDaySelectedListener - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.impl / OnDaySelectedListener
9 |
10 | OnDaySelectedListener
11 |
12 | interface OnDaySelectedListener
13 |
14 | interface OnDaySelectedListener
15 | SectionCalendarView Class: OnDaySelectedListener Created by Pyxis on 2017-12-20.
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.impl/-on-day-selected-listener/on-day-selected.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | OnDaySelectedListener.onDaySelected - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.impl / OnDaySelectedListener / onDaySelected
9 |
10 | onDaySelected
11 |
12 | abstract fun onDaySelected ( startDay : String , endDay : String ) : Unit
13 |
14 | abstract fun onDaySelected ( startDay : String , endDay : String ) : Unit
15 | Return selected date. 선택한 날짜를 반환합니다. If the value is empty, the value is not selected. Be sure to handle exceptions. 값이 비어있는 경우, 해당 값을 선택하지 않은 상태입니다. 반드시 예외 처리를 하세요.
16 | Parameters
17 |
18 | startDay
- StartDay / 시작일
19 |
20 | endDay
- EndDay / 종료일
21 |
22 |
23 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.impl/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | pyxis.uzuki.live.sectioncalendarview.impl - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.impl
9 |
10 | Package pyxis.uzuki.live.sectioncalendarview.impl
11 | Types
12 |
13 |
14 |
15 |
16 | OnDaySelectedListener
17 |
18 |
19 | interface OnDaySelectedListener
20 | interface OnDaySelectedListener
21 | SectionCalendarView Class: OnDaySelectedListener Created by Pyxis on 2017-12-20.
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.model/-color-data/-builder/-init-.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ColorData.Builder. - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.model / ColorData / Builder / <init>
9 |
10 | <init>
11 |
12 | Builder ( )
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.model/-color-data/-builder/build.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ColorData.Builder.build - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.model / ColorData / Builder / build
9 |
10 | build
11 |
12 | fun build ( ) : ColorData
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.model/-color-data/-builder/set-default-bg-color.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ColorData.Builder.setDefaultBgColor - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.model / ColorData / Builder / setDefaultBgColor
9 |
10 | setDefaultBgColor
11 |
12 | fun setDefaultBgColor ( color : String ) : Builder
13 |
14 | fun setDefaultBgColor ( color : Int ) : Builder
15 | Set default background color
16 | 기본 배경색 설정
17 | Parameters
18 |
19 | color
- default background color / 기본 배경색
20 |
21 |
22 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.model/-color-data/-builder/set-default-text-color.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ColorData.Builder.setDefaultTextColor - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.model / ColorData / Builder / setDefaultTextColor
9 |
10 | setDefaultTextColor
11 |
12 | fun setDefaultTextColor ( color : String ) : Builder
13 |
14 | fun setDefaultTextColor ( color : Int ) : Builder
15 | Set default text color
16 | 기본 글자 색상 설정
17 | Parameters
18 |
19 | color
- default text color / 기본 글자 색상
20 |
21 |
22 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.model/-color-data/-builder/set-end-day-bg-color.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ColorData.Builder.setEndDayBgColor - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.model / ColorData / Builder / setEndDayBgColor
9 |
10 | setEndDayBgColor
11 |
12 | fun setEndDayBgColor ( color : String ) : Builder
13 |
14 | fun setEndDayBgColor ( color : Int ) : Builder
15 | Set selected EndDay background color
16 | 선택된 종료일 배경색 설정
17 | Parameters
18 |
19 | color
- EndDay background color / 종료일 배경색
20 |
21 |
22 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.model/-color-data/-builder/set-end-day-text-color.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ColorData.Builder.setEndDayTextColor - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.model / ColorData / Builder / setEndDayTextColor
9 |
10 | setEndDayTextColor
11 |
12 | fun setEndDayTextColor ( color : String ) : Builder
13 |
14 | fun setEndDayTextColor ( color : Int ) : Builder
15 | Set selected EndDay text color
16 | 선택된 종료일 글자 색상 설정
17 | Parameters
18 |
19 | color
- EndDay text color / 종료일 글자 색상
20 |
21 |
22 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.model/-color-data/-builder/set-prev-day-text-color.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ColorData.Builder.setPrevDayTextColor - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.model / ColorData / Builder / setPrevDayTextColor
9 |
10 | setPrevDayTextColor
11 |
12 | fun setPrevDayTextColor ( color : String ) : Builder
13 |
14 | fun setPrevDayTextColor ( color : Int ) : Builder
15 | Set past date color
16 | 지나간 날짜 글자 색상 설정
17 | Parameters
18 |
19 | color
- past date color / 지나간 날짜 글자 색상
20 |
21 |
22 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.model/-color-data/-builder/set-selected-day-bg-color.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ColorData.Builder.setSelectedDayBgColor - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.model / ColorData / Builder / setSelectedDayBgColor
9 |
10 | setSelectedDayBgColor
11 |
12 | fun setSelectedDayBgColor ( color : String ) : Builder
13 |
14 | fun setSelectedDayBgColor ( color : Int ) : Builder
15 | Set selected day background color
16 | 선택된 날짜 배경색 설정
17 | Parameters
18 |
19 | color
- day text color / 날짜 배경색
20 |
21 |
22 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.model/-color-data/-builder/set-start-day-bg-color.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ColorData.Builder.setStartDayBgColor - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.model / ColorData / Builder / setStartDayBgColor
9 |
10 | setStartDayBgColor
11 |
12 | fun setStartDayBgColor ( color : String ) : Builder
13 |
14 | fun setStartDayBgColor ( color : Int ) : Builder
15 | Set selected StartDay background color
16 | 선택된 시작일 배경색 설정
17 | Parameters
18 |
19 | color
- StartDay background color / 시작일 배경색
20 |
21 |
22 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.model/-color-data/-builder/set-start-day-text-color.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ColorData.Builder.setStartDayTextColor - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.model / ColorData / Builder / setStartDayTextColor
9 |
10 | setStartDayTextColor
11 |
12 | fun setStartDayTextColor ( color : String ) : Builder
13 |
14 | fun setStartDayTextColor ( color : Int ) : Builder
15 | Set selected StartDay text color
16 | 선택된 시작일 글자 색상 설정
17 | Parameters
18 |
19 | color
- StartDay text color / 시작일 글자 색상
20 |
21 |
22 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.model/-color-data/-builder/set-today-text-color.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ColorData.Builder.setTodayTextColor - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.model / ColorData / Builder / setTodayTextColor
9 |
10 | setTodayTextColor
11 |
12 | fun setTodayTextColor ( color : String ) : Builder
13 |
14 | fun setTodayTextColor ( color : Int ) : Builder
15 | Set today's date color
16 | 오늘 날짜 글자 색상 설정
17 | Parameters
18 |
19 | color
- today's date color / 오늘 날짜 글자 색상
20 |
21 |
22 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.model/-color-data/-init-.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ColorData. - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.model / ColorData / <init>
9 |
10 | <init>
11 |
12 | ColorData ( defaultBgColor : Int = 0xFFFFFF, defaultTextColor : Int = 0x999999, todayTextColor : Int = 0x222222, prevDayTextColor : Int = 0xEEEEEE, startDayBgColor : Int = 0x628DE5, startDayTextColor : Int = 0xFFFFFF, endDayBgColor : Int = 0xEC3C3C, endDayTextColor : Int = 0xFFFFFF, selectedDayBgColor : Int = 0xEEEEEE)
13 | SectionCalendarView
14 | Class: ColorData
15 | Created by Pyxis on 2017-12-20.
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.model/-color-data/default-bg-color.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ColorData.defaultBgColor - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.model / ColorData / defaultBgColor
9 |
10 | defaultBgColor
11 |
12 | val defaultBgColor : Int
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.model/-color-data/default-text-color.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ColorData.defaultTextColor - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.model / ColorData / defaultTextColor
9 |
10 | defaultTextColor
11 |
12 | val defaultTextColor : Int
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.model/-color-data/end-day-bg-color.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ColorData.endDayBgColor - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.model / ColorData / endDayBgColor
9 |
10 | endDayBgColor
11 |
12 | val endDayBgColor : Int
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.model/-color-data/end-day-text-color.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ColorData.endDayTextColor - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.model / ColorData / endDayTextColor
9 |
10 | endDayTextColor
11 |
12 | val endDayTextColor : Int
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.model/-color-data/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ColorData - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.model / ColorData
9 |
10 | ColorData
11 | data class ColorData
12 | SectionCalendarView
13 | Class: ColorData
14 | Created by Pyxis on 2017-12-20.
15 | Types
16 |
17 |
18 |
19 |
20 | Builder
21 |
22 |
23 | class Builder
24 |
25 |
26 |
27 | Constructors
28 |
29 |
30 |
31 |
32 | <init>
33 |
34 |
35 | ColorData ( defaultBgColor : Int = 0xFFFFFF, defaultTextColor : Int = 0x999999, todayTextColor : Int = 0x222222, prevDayTextColor : Int = 0xEEEEEE, startDayBgColor : Int = 0x628DE5, startDayTextColor : Int = 0xFFFFFF, endDayBgColor : Int = 0xEC3C3C, endDayTextColor : Int = 0xFFFFFF, selectedDayBgColor : Int = 0xEEEEEE)
36 | SectionCalendarView
37 | Class: ColorData
38 | Created by Pyxis on 2017-12-20.
39 |
40 |
41 |
42 |
43 | Properties
44 |
111 |
112 |
113 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.model/-color-data/prev-day-text-color.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ColorData.prevDayTextColor - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.model / ColorData / prevDayTextColor
9 |
10 | prevDayTextColor
11 |
12 | val prevDayTextColor : Int
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.model/-color-data/selected-day-bg-color.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ColorData.selectedDayBgColor - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.model / ColorData / selectedDayBgColor
9 |
10 | selectedDayBgColor
11 |
12 | val selectedDayBgColor : Int
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.model/-color-data/start-day-bg-color.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ColorData.startDayBgColor - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.model / ColorData / startDayBgColor
9 |
10 | startDayBgColor
11 |
12 | val startDayBgColor : Int
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.model/-color-data/start-day-text-color.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ColorData.startDayTextColor - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.model / ColorData / startDayTextColor
9 |
10 | startDayTextColor
11 |
12 | val startDayTextColor : Int
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.model/-color-data/today-text-color.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | ColorData.todayTextColor - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.model / ColorData / todayTextColor
9 |
10 | todayTextColor
11 |
12 | val todayTextColor : Int
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.model/-day-data/-init-.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | DayData. - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.model / DayData / <init>
9 |
10 | <init>
11 |
12 | DayData ( year : Int = 0, month : Int = 0, day : Int = 0, dayStr : String = "", fullDay : String = "")
13 | SectionCalendarView
14 | Class: DayData
15 | Created by Pyxis on 2017-12-20.
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.model/-day-data/day-str.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | DayData.dayStr - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.model / DayData / dayStr
9 |
10 | dayStr
11 |
12 | var dayStr : String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.model/-day-data/day.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | DayData.day - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.model / DayData / day
9 |
10 | day
11 |
12 | var day : Int
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.model/-day-data/full-day.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | DayData.fullDay - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.model / DayData / fullDay
9 |
10 | fullDay
11 |
12 | var fullDay : String
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.model/-day-data/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | DayData - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.model / DayData
9 |
10 | DayData
11 | data class DayData
12 | SectionCalendarView
13 | Class: DayData
14 | Created by Pyxis on 2017-12-20.
15 | Constructors
16 |
17 |
18 |
19 |
20 | <init>
21 |
22 |
23 | DayData ( year : Int = 0, month : Int = 0, day : Int = 0, dayStr : String = "", fullDay : String = "")
24 | SectionCalendarView
25 | Class: DayData
26 | Created by Pyxis on 2017-12-20.
27 |
28 |
29 |
30 |
31 | Properties
32 |
33 |
34 |
35 |
36 | day
37 |
38 |
39 | var day : Int
40 |
41 |
42 |
43 | dayStr
44 |
45 |
46 | var dayStr : String
47 |
48 |
49 |
50 | fullDay
51 |
52 |
53 | var fullDay : String
54 |
55 |
56 |
57 | month
58 |
59 |
60 | var month : Int
61 |
62 |
63 |
64 | year
65 |
66 |
67 | var year : Int
68 |
69 |
70 |
71 |
72 |
73 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.model/-day-data/month.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | DayData.month - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.model / DayData / month
9 |
10 | month
11 |
12 | var month : Int
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.model/-day-data/year.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | DayData.year - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.model / DayData / year
9 |
10 | year
11 |
12 | var year : Int
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.model/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | pyxis.uzuki.live.sectioncalendarview.model - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.model
9 |
10 | Package pyxis.uzuki.live.sectioncalendarview.model
11 | Types
12 |
13 |
14 |
15 |
16 | ColorData
17 |
18 |
19 | data class ColorData
20 | SectionCalendarView
21 | Class: ColorData
22 | Created by Pyxis on 2017-12-20.
23 |
24 |
25 |
26 |
27 | DayData
28 |
29 |
30 | data class DayData
31 | SectionCalendarView
32 | Class: DayData
33 | Created by Pyxis on 2017-12-20.
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.utils/assign-pad10.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | assignPad10 - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.utils / assignPad10
9 |
10 | assignPad10
11 |
12 | fun assignPad10 ( number : Int ) : String
13 | SectionCalendarView
14 | Class: InternalEx
15 | Created by Pyxis on 2017-12-20.
16 |
17 | fun assignPad10 ( number : String ) : String
18 |
19 |
20 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.utils/compare-day-equal.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | compareDayEqual - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.utils / compareDayEqual
9 |
10 | compareDayEqual
11 |
12 | fun compareDayEqual ( a : String , b : String ) : Boolean
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.utils/compare-day-great-equal.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | compareDayGreatEqual - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.utils / compareDayGreatEqual
9 |
10 | compareDayGreatEqual
11 |
12 | fun compareDayGreatEqual ( a : String , b : String ) : Boolean
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.utils/compare-day-great.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | compareDayGreat - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.utils / compareDayGreat
9 |
10 | compareDayGreat
11 |
12 | fun compareDayGreat ( a : String , b : String ) : Boolean
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.utils/compare-day-less-equal.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | compareDayLessEqual - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.utils / compareDayLessEqual
9 |
10 | compareDayLessEqual
11 |
12 | fun compareDayLessEqual ( a : String , b : String ) : Boolean
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.utils/compare-day-less.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | compareDayLess - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.utils / compareDayLess
9 |
10 | compareDayLess
11 |
12 | fun compareDayLess ( a : String , b : String ) : Boolean
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.utils/compare-equal.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | compareEqual - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.utils / compareEqual
9 |
10 | compareEqual
11 |
12 | fun compareEqual ( a : String , b : String ) : Boolean
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.utils/compare-greater-equal.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | compareGreaterEqual - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.utils / compareGreaterEqual
9 |
10 | compareGreaterEqual
11 |
12 | fun compareGreaterEqual ( a : String , b : String ) : Boolean
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.utils/compare-greater.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | compareGreater - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.utils / compareGreater
9 |
10 | compareGreater
11 |
12 | fun compareGreater ( a : String , b : String ) : Boolean
13 | SectionCalendarView
14 | Class: CommonEx
15 | Created by Pyxis on 2017-12-20.
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.utils/compare-less-equal.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | compareLessEqual - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.utils / compareLessEqual
9 |
10 | compareLessEqual
11 |
12 | fun compareLessEqual ( a : String , b : String ) : Boolean
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.utils/compare-less.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | compareLess - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.utils / compareLess
9 |
10 | compareLess
11 |
12 | fun compareLess ( a : String , b : String ) : Boolean
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.utils/kotlin.-string/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | pyxis.uzuki.live.sectioncalendarview.utils.kotlin.String - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.utils / kotlin.String
9 |
10 | Extensions for kotlin.String
11 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.utils/kotlin.-string/to-int-or-zero.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | toIntOrZero - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.utils / kotlin.String / toIntOrZero
9 |
10 | toIntOrZero
11 |
12 | fun String . toIntOrZero ( ) : Int
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview.utils/not-empty-string.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | notEmptyString - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview.utils / notEmptyString
9 |
10 | notEmptyString
11 |
12 | fun notEmptyString ( vararg args : String ) : Boolean
13 |
14 |
15 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview/-section-calendar-view/-init-.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SectionCalendarView. - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview / SectionCalendarView / <init>
9 |
10 | <init>
11 |
12 | SectionCalendarView ( context : Context )
13 |
14 | SectionCalendarView ( context : Context , attrs : AttributeSet )
15 |
16 | SectionCalendarView ( context : Context )
17 |
18 | SectionCalendarView ( context : Context , attrs : AttributeSet )
19 |
20 |
21 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview/-section-calendar-view/build-calendar.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SectionCalendarView.buildCalendar - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview / SectionCalendarView / buildCalendar
9 |
10 | buildCalendar
11 |
12 | open fun buildCalendar ( ) : Unit
13 |
14 | open fun buildCalendar ( ) : Unit
15 | Create and display a calendar without given parameter 주어진 파라미터 없이 달력을 만들어서 보여줍니다.
16 |
17 | open fun buildCalendar ( startDay : String , endDay : String ) : Unit
18 |
19 | open fun buildCalendar ( startDay : String , endDay : String ) : Unit
20 | Create and display a calendar with given two parameter, one is StartDay, other is EndDay 시작일, 종료일을 설정하여 달력을 만들어서 보여줍니다.
21 | Parameters
22 |
23 | startDay
- StartDay / 시작일
24 |
25 | endDay
- EndDay / 종료일
26 |
27 |
28 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview/-section-calendar-view/clear-date.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SectionCalendarView.clearDate - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview / SectionCalendarView / clearDate
9 |
10 | clearDate
11 |
12 | open fun clearDate ( ) : Unit
13 |
14 | open fun clearDate ( ) : Unit
15 | Clear Calendar state 캘린더 상태를 초기화합니다.
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview/-section-calendar-view/done.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SectionCalendarView.done - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview / SectionCalendarView / done
9 |
10 | done
11 |
12 | open fun done ( ) : Unit
13 |
14 | open fun done ( ) : Unit
15 | Sent via OnDaySelectedListener with the information you currently have. 현재 가지고 있는 정보를 설정한 OnDaySelectedListener 로 통해 전송됩니다.
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview/-section-calendar-view/go-to-next-month.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SectionCalendarView.goToNextMonth - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview / SectionCalendarView / goToNextMonth
9 |
10 | goToNextMonth
11 |
12 | open fun goToNextMonth ( ) : Unit
13 |
14 | open fun goToNextMonth ( ) : Unit
15 | Create and display a calendar of the next month 다음 달의 달력을 만들어서 보여줍니다.
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview/-section-calendar-view/go-to-prev-month.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SectionCalendarView.goToPrevMonth - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview / SectionCalendarView / goToPrevMonth
9 |
10 | goToPrevMonth
11 |
12 | open fun goToPrevMonth ( ) : Unit
13 |
14 | open fun goToPrevMonth ( ) : Unit
15 | Create and display a calendar of the previous month 이전 달의 달력을 만들어서 보여줍니다.
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview/-section-calendar-view/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SectionCalendarView - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview / SectionCalendarView
9 |
10 | SectionCalendarView
11 |
12 | open class SectionCalendarView : LinearLayout , OnItemClickListener
13 |
14 | open class SectionCalendarView : LinearLayout , OnItemClickListener
15 | SectionCalendarView Class: SectionCalendarView Created by Pyxis on 2017-12-20.
16 |
17 |
18 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview/-section-calendar-view/on-item-click.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SectionCalendarView.onItemClick - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview / SectionCalendarView / onItemClick
9 |
10 | onItemClick
11 |
12 | open fun onItemClick ( parent : AdapterView < * > , view : View , position : Int , id : Long ) : Unit
13 |
14 | open fun onItemClick ( parent : AdapterView < * > , view : View , position : Int , id : Long ) : Unit
15 |
16 |
17 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview/-section-calendar-view/set-color-data.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SectionCalendarView.setColorData - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview / SectionCalendarView / setColorData
9 |
10 | setColorData
11 |
12 | open fun setColorData ( colorData : ColorData ) : Unit
13 |
14 | open fun setColorData ( colorData : ColorData ) : Unit
15 | Use the ColorData object to set the color. ColorData 객체를 활용하여 색을 설정합니다.
16 | Parameters
17 |
18 | colorData
- ColorData
19 |
20 |
21 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview/-section-calendar-view/set-date-format.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SectionCalendarView.setDateFormat - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview / SectionCalendarView / setDateFormat
9 |
10 | setDateFormat
11 |
12 | open fun setDateFormat ( dateFormat : String ) : Unit
13 |
14 | open fun setDateFormat ( dateFormat : String ) : Unit
15 | Sets the dateFormat of the currently displayed month. Default is yyyy MMM 위에 표시되는 현재 보여지고 있는 달의 날짜 포맷을 설정합니다. 기본적으로 yyyy MMM이 사용됩니다.
16 |
The actual display format changes depending on which language setting the current device is in. 현재 기기가 어떤 언어 설정으로 되어있는지에 따라 실제 표시되는 형식이 변경됩니다.
17 |
18 | Parameters
19 |
20 | dateFormat
- DateFormat / 날짜 포맷
21 |
22 |
23 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview/-section-calendar-view/set-err-toast-message.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SectionCalendarView.setErrToastMessage - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview / SectionCalendarView / setErrToastMessage
9 |
10 | setErrToastMessage
11 |
12 | open fun setErrToastMessage ( message : String ) : Unit
13 |
14 | open fun setErrToastMessage ( message : String ) : Unit
15 | Change message of Toast to be displayed if an incorrect value is selected. 잘못된 값을 선택했을 경우 표시되는 Toast의 메세지를 변경합니다.
16 | Parameters
17 |
18 | message
- message / 메세지
19 |
20 | open fun setErrToastMessage ( messageRes : Int ) : Unit
21 |
22 | open fun setErrToastMessage ( messageRes : Int ) : Unit
23 | Change message of Toast to be displayed if an incorrect value is selected. 잘못된 값을 선택했을 경우 표시되는 Toast의 메세지를 변경합니다.
24 | Parameters
25 |
26 | messageRes
- resources of message / 메세지 리소스
27 |
28 |
29 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview/-section-calendar-view/set-on-day-selected-listener.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | SectionCalendarView.setOnDaySelectedListener - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview / SectionCalendarView / setOnDaySelectedListener
9 |
10 | setOnDaySelectedListener
11 |
12 | open fun setOnDaySelectedListener ( onDaySelectedListener : OnDaySelectedListener ) : Unit
13 |
14 | open fun setOnDaySelectedListener ( onDaySelectedListener : OnDaySelectedListener ) : Unit
15 | Gets the selection date with OnDaySelectedListener OnDaySelectedListener 를 통해 선택하는 날짜를 가져옵니다.
16 | Parameters
17 |
18 | onDaySelectedListener
- Object which implements OnDaySelectedListener OnDaySelectedListener 를 구현하는 객체
19 |
20 |
21 |
--------------------------------------------------------------------------------
/docs/-section-calendar-view/pyxis.uzuki.live.sectioncalendarview/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | pyxis.uzuki.live.sectioncalendarview - SectionCalendarView
5 |
6 |
7 |
8 | SectionCalendarView / pyxis.uzuki.live.sectioncalendarview
9 |
10 | Package pyxis.uzuki.live.sectioncalendarview
11 | Types
12 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/docs/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/docs/style.css:
--------------------------------------------------------------------------------
1 | @import url(https://fonts.googleapis.com/css?family=Open+Sans:300i,400,700);
2 |
3 | body, table {
4 | padding:50px;
5 | font:14px/1.5 'Open Sans', "Helvetica Neue", Helvetica, Arial, sans-serif;
6 | color:#555;
7 | font-weight:300;
8 | margin-left: auto;
9 | margin-right: auto;
10 | max-width: 1440px;
11 | }
12 |
13 | .keyword {
14 | color:black;
15 | font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal;
16 | font-size:12px;
17 | }
18 |
19 | .symbol {
20 | font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal;
21 | font-size:12px;
22 | }
23 |
24 | .identifier {
25 | color: darkblue;
26 | font-size:12px;
27 | font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal;
28 | }
29 |
30 | h1, h2, h3, h4, h5, h6 {
31 | color:#222;
32 | margin:0 0 20px;
33 | }
34 |
35 | p, ul, ol, table, pre, dl {
36 | margin:0 0 20px;
37 | }
38 |
39 | h1, h2, h3 {
40 | line-height:1.1;
41 | }
42 |
43 | h1 {
44 | font-size:28px;
45 | }
46 |
47 | h2 {
48 | color:#393939;
49 | }
50 |
51 | h3, h4, h5, h6 {
52 | color:#494949;
53 | }
54 |
55 | a {
56 | color:#258aaf;
57 | font-weight:400;
58 | text-decoration:none;
59 | }
60 |
61 | a:hover {
62 | color: inherit;
63 | text-decoration:underline;
64 | }
65 |
66 | a small {
67 | font-size:11px;
68 | color:#555;
69 | margin-top:-0.6em;
70 | display:block;
71 | }
72 |
73 | .wrapper {
74 | width:860px;
75 | margin:0 auto;
76 | }
77 |
78 | blockquote {
79 | border-left:1px solid #e5e5e5;
80 | margin:0;
81 | padding:0 0 0 20px;
82 | font-style:italic;
83 | }
84 |
85 | code, pre {
86 | font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal;
87 | color:#333;
88 | font-size:12px;
89 | }
90 |
91 | pre {
92 | display: block;
93 | /*
94 | padding:8px 8px;
95 | background: #f8f8f8;
96 | border-radius:5px;
97 | border:1px solid #e5e5e5;
98 | */
99 | overflow-x: auto;
100 | }
101 |
102 | table {
103 | width:100%;
104 | border-collapse:collapse;
105 | }
106 |
107 | th, td {
108 | text-align:left;
109 | vertical-align: top;
110 | padding:5px 10px;
111 | }
112 |
113 | dt {
114 | color:#444;
115 | font-weight:700;
116 | }
117 |
118 | th {
119 | color:#444;
120 | }
121 |
122 | img {
123 | max-width:100%;
124 | }
125 |
126 | header {
127 | width:270px;
128 | float:left;
129 | position:fixed;
130 | }
131 |
132 | header ul {
133 | list-style:none;
134 | height:40px;
135 |
136 | padding:0;
137 |
138 | background: #eee;
139 | background: -moz-linear-gradient(top, #f8f8f8 0%, #dddddd 100%);
140 | background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f8f8f8), color-stop(100%,#dddddd));
141 | background: -webkit-linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
142 | background: -o-linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
143 | background: -ms-linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
144 | background: linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
145 |
146 | border-radius:5px;
147 | border:1px solid #d2d2d2;
148 | box-shadow:inset #fff 0 1px 0, inset rgba(0,0,0,0.03) 0 -1px 0;
149 | width:270px;
150 | }
151 |
152 | header li {
153 | width:89px;
154 | float:left;
155 | border-right:1px solid #d2d2d2;
156 | height:40px;
157 | }
158 |
159 | header ul a {
160 | line-height:1;
161 | font-size:11px;
162 | color:#999;
163 | display:block;
164 | text-align:center;
165 | padding-top:6px;
166 | height:40px;
167 | }
168 |
169 | strong {
170 | color:#222;
171 | font-weight:700;
172 | }
173 |
174 | header ul li + li {
175 | width:88px;
176 | border-left:1px solid #fff;
177 | }
178 |
179 | header ul li + li + li {
180 | border-right:none;
181 | width:89px;
182 | }
183 |
184 | header ul a strong {
185 | font-size:14px;
186 | display:block;
187 | color:#222;
188 | }
189 |
190 | section {
191 | width:500px;
192 | float:right;
193 | padding-bottom:50px;
194 | }
195 |
196 | small {
197 | font-size:11px;
198 | }
199 |
200 | hr {
201 | border:0;
202 | background:#e5e5e5;
203 | height:1px;
204 | margin:0 0 20px;
205 | }
206 |
207 | footer {
208 | width:270px;
209 | float:left;
210 | position:fixed;
211 | bottom:50px;
212 | }
213 |
214 | @media print, screen and (max-width: 960px) {
215 |
216 | div.wrapper {
217 | width:auto;
218 | margin:0;
219 | }
220 |
221 | header, section, footer {
222 | float:none;
223 | position:static;
224 | width:auto;
225 | }
226 |
227 | header {
228 | padding-right:320px;
229 | }
230 |
231 | section {
232 | border:1px solid #e5e5e5;
233 | border-width:1px 0;
234 | padding:20px 0;
235 | margin:0 0 20px;
236 | }
237 |
238 | header a small {
239 | display:inline;
240 | }
241 |
242 | header ul {
243 | position:absolute;
244 | right:50px;
245 | top:52px;
246 | }
247 | }
248 |
249 | @media print, screen and (max-width: 720px) {
250 | body {
251 | word-wrap:break-word;
252 | }
253 |
254 | header {
255 | padding:0;
256 | }
257 |
258 | header ul, header p.view {
259 | position:static;
260 | }
261 |
262 | pre, code {
263 | word-wrap:normal;
264 | }
265 | }
266 |
267 | @media print, screen and (max-width: 480px) {
268 | body {
269 | padding:15px;
270 | }
271 |
272 | header ul {
273 | display:none;
274 | }
275 | }
276 |
277 | @media print {
278 | body {
279 | padding:0.4in;
280 | font-size:12pt;
281 | color:#444;
282 | }
283 | }
284 |
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | org.gradle.jvmargs=-Xmx1536m
13 |
14 | # When configured, Gradle will run in incubating parallel mode.
15 | # This option should only be used with decoupled projects. More details, visit
16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
17 | # org.gradle.parallel=true
18 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindSekirun/SectionCalendarView/2505666b666e9d68718bc72da7edd46b9d43187d/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Tue Dec 19 09:04:03 KST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
7 |
--------------------------------------------------------------------------------
/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 | DEFAULT_JVM_OPTS=""
11 |
12 | APP_NAME="Gradle"
13 | APP_BASE_NAME=`basename "$0"`
14 |
15 | # Use the maximum available, or set MAX_FD != -1 to use that value.
16 | MAX_FD="maximum"
17 |
18 | warn ( ) {
19 | echo "$*"
20 | }
21 |
22 | die ( ) {
23 | echo
24 | echo "$*"
25 | echo
26 | exit 1
27 | }
28 |
29 | # OS specific support (must be 'true' or 'false').
30 | cygwin=false
31 | msys=false
32 | darwin=false
33 | case "`uname`" in
34 | CYGWIN* )
35 | cygwin=true
36 | ;;
37 | Darwin* )
38 | darwin=true
39 | ;;
40 | MINGW* )
41 | msys=true
42 | ;;
43 | esac
44 |
45 | # Attempt to set APP_HOME
46 | # Resolve links: $0 may be a link
47 | PRG="$0"
48 | # Need this for relative symlinks.
49 | while [ -h "$PRG" ] ; do
50 | ls=`ls -ld "$PRG"`
51 | link=`expr "$ls" : '.*-> \(.*\)$'`
52 | if expr "$link" : '/.*' > /dev/null; then
53 | PRG="$link"
54 | else
55 | PRG=`dirname "$PRG"`"/$link"
56 | fi
57 | done
58 | SAVED="`pwd`"
59 | cd "`dirname \"$PRG\"`/" >/dev/null
60 | APP_HOME="`pwd -P`"
61 | cd "$SAVED" >/dev/null
62 |
63 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
64 |
65 | # Determine the Java command to use to start the JVM.
66 | if [ -n "$JAVA_HOME" ] ; then
67 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
68 | # IBM's JDK on AIX uses strange locations for the executables
69 | JAVACMD="$JAVA_HOME/jre/sh/java"
70 | else
71 | JAVACMD="$JAVA_HOME/bin/java"
72 | fi
73 | if [ ! -x "$JAVACMD" ] ; then
74 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
75 |
76 | Please set the JAVA_HOME variable in your environment to match the
77 | location of your Java installation."
78 | fi
79 | else
80 | JAVACMD="java"
81 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
82 |
83 | Please set the JAVA_HOME variable in your environment to match the
84 | location of your Java installation."
85 | fi
86 |
87 | # Increase the maximum file descriptors if we can.
88 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
89 | MAX_FD_LIMIT=`ulimit -H -n`
90 | if [ $? -eq 0 ] ; then
91 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
92 | MAX_FD="$MAX_FD_LIMIT"
93 | fi
94 | ulimit -n $MAX_FD
95 | if [ $? -ne 0 ] ; then
96 | warn "Could not set maximum file descriptor limit: $MAX_FD"
97 | fi
98 | else
99 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
100 | fi
101 | fi
102 |
103 | # For Darwin, add options to specify how the application appears in the dock
104 | if $darwin; then
105 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
106 | fi
107 |
108 | # For Cygwin, switch paths to Windows format before running java
109 | if $cygwin ; then
110 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
111 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
112 | JAVACMD=`cygpath --unix "$JAVACMD"`
113 |
114 | # We build the pattern for arguments to be converted via cygpath
115 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
116 | SEP=""
117 | for dir in $ROOTDIRSRAW ; do
118 | ROOTDIRS="$ROOTDIRS$SEP$dir"
119 | SEP="|"
120 | done
121 | OURCYGPATTERN="(^($ROOTDIRS))"
122 | # Add a user-defined pattern to the cygpath arguments
123 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
124 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
125 | fi
126 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
127 | i=0
128 | for arg in "$@" ; do
129 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
130 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
131 |
132 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
133 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
134 | else
135 | eval `echo args$i`="\"$arg\""
136 | fi
137 | i=$((i+1))
138 | done
139 | case $i in
140 | (0) set -- ;;
141 | (1) set -- "$args0" ;;
142 | (2) set -- "$args0" "$args1" ;;
143 | (3) set -- "$args0" "$args1" "$args2" ;;
144 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
145 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
146 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
147 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
148 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
149 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
150 | esac
151 | fi
152 |
153 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
154 | function splitJvmOpts() {
155 | JVM_OPTS=("$@")
156 | }
157 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
158 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
159 |
160 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
161 |
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/library/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 | /docs/
--------------------------------------------------------------------------------
/library/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.library'
2 | apply plugin: 'kotlin-android'
3 | apply plugin: 'org.jetbrains.dokka-android'
4 |
5 | android {
6 | compileSdkVersion 26
7 | defaultConfig {
8 | minSdkVersion 16
9 | targetSdkVersion 26
10 | versionCode 1
11 | versionName "1.0"
12 | }
13 | buildTypes {
14 | release {
15 | minifyEnabled false
16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
17 | }
18 | }
19 | }
20 |
21 | dependencies {
22 | implementation fileTree(dir: 'libs', include: ['*.jar'])
23 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
24 |
25 | // WindSekirun OSS
26 | implementation 'com.github.WindSekirun:RichUtilsKt:2.0.4'
27 | implementation 'com.github.WindSekirun:PyxInjector:1.1.5'
28 | }
29 |
30 | dokka {
31 | moduleName = 'SectionCalendarView'
32 | outputFormat = 'html'
33 | outputDirectory = "$rootProject.projectDir/docs"
34 | sourceDirs = files('src/main/java')
35 | skipEmptyPackages = true
36 | linkMapping {
37 | dir = "src/main/java"
38 | url = "https://github.com/WindSekirun/SectionCalendarView/tree/master/library/src/main/java"
39 | suffix = "#L"
40 | }
41 | }
--------------------------------------------------------------------------------
/library/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
22 |
--------------------------------------------------------------------------------
/library/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
--------------------------------------------------------------------------------
/library/src/main/java/pyxis/uzuki/live/sectioncalendarview/adapter/CalendarAdapter.java:
--------------------------------------------------------------------------------
1 | package pyxis.uzuki.live.sectioncalendarview.adapter;
2 |
3 | import android.content.Context;
4 | import android.view.LayoutInflater;
5 | import android.view.View;
6 | import android.view.ViewGroup;
7 | import android.widget.BaseAdapter;
8 | import android.widget.TextView;
9 |
10 | import java.util.ArrayList;
11 | import java.util.Calendar;
12 |
13 | import pyxis.uzuki.live.sectioncalendarview.R;
14 | import pyxis.uzuki.live.sectioncalendarview.model.ColorData;
15 | import pyxis.uzuki.live.sectioncalendarview.model.DayData;
16 | import pyxis.uzuki.live.sectioncalendarview.utils.CommonEx;
17 | import pyxis.uzuki.live.sectioncalendarview.utils.InternalEx;
18 |
19 | /**
20 | * SectionCalendarView
21 | * Class: CalendarAdapter
22 | * Created by Pyxis on 2017-12-20.
23 | */
24 |
25 | @SuppressWarnings("ConstantConditions")
26 | public class CalendarAdapter extends BaseAdapter {
27 | private LayoutInflater mInflater = null;
28 | private String mStartDay = "";
29 | private String mEndDay = "";
30 | private String mNowFullDay = null;
31 | private boolean isStart = false;
32 | private boolean isEnd = false;
33 | private ArrayList mList = new ArrayList<>();
34 | private ColorData mColorData;
35 | private boolean mPreventPreviousDate = true;
36 |
37 | public CalendarAdapter(Context mContext, ColorData colorData, boolean preventPreviousDate) {
38 | this.mColorData = colorData;
39 | this.mPreventPreviousDate = preventPreviousDate;
40 | this.mInflater = LayoutInflater.from(mContext);
41 |
42 | Calendar mCalendar = Calendar.getInstance();
43 | mNowFullDay = String.valueOf(mCalendar.get(Calendar.YEAR));
44 | mNowFullDay += InternalEx.assignPad10(mCalendar.get(Calendar.MONTH) + 1);
45 | mNowFullDay += InternalEx.assignPad10(mCalendar.get(Calendar.DAY_OF_MONTH));
46 | }
47 |
48 | @Override
49 | public int getCount() {
50 | return mList.size();
51 | }
52 |
53 | @Override
54 | public DayData getItem(int position) {
55 | return mList.get(position);
56 | }
57 |
58 | @Override
59 | public long getItemId(int position) {
60 | return 0;
61 | }
62 |
63 | @Override
64 | public View getView(int position, View convertView, ViewGroup parent) {
65 | ViewHolder holder;
66 |
67 | if (convertView == null) {
68 | convertView = mInflater.inflate(R.layout.calendar_item, null);
69 | holder = new ViewHolder(convertView);
70 | convertView.setTag(holder);
71 | } else {
72 | holder = (ViewHolder) convertView.getTag();
73 | }
74 |
75 | DayData data = mList.get(position);
76 | String day = data.getDayStr();
77 |
78 | if (mNowFullDay.equals(data.getFullDay())) {
79 | holder.dayText.setTextColor(mColorData.getTodayTextColor());
80 | } else if (CommonEx.compareGreater(data.getFullDay(), mNowFullDay)) {
81 | holder.dayText.setTextColor(mColorData.getDefaultTextColor());
82 | } else if (mPreventPreviousDate) {
83 | holder.dayText.setTextColor(mColorData.getPrevDayTextColor());
84 | } else {
85 | holder.dayText.setTextColor(mColorData.getDefaultTextColor());
86 | }
87 |
88 | holder.dayText.setBackgroundColor(mColorData.getDefaultBgColor());
89 | if (isStart && InternalEx.compareDayEqual(mStartDay, data.getFullDay())) {
90 | holder.dayText.setBackgroundColor(mColorData.getStartDayBgColor());
91 | holder.dayText.setTextColor(mColorData.getStartDayTextColor());
92 | } else if (CommonEx.notEmptyString(mStartDay) && isEnd && InternalEx.compareDayEqual(mEndDay, data.getFullDay())) {
93 | holder.dayText.setBackgroundColor(mColorData.getEndDayBgColor());
94 | holder.dayText.setTextColor(mColorData.getEndDayTextColor());
95 | } else if (InternalEx.compareDayLessEqual(mStartDay, data.getFullDay()) && InternalEx.compareDayGreatEqual(mEndDay, data.getFullDay())) {
96 | holder.dayText.setBackgroundColor(mColorData.getSelectedDayBgColor());
97 | }
98 |
99 | holder.dayText.setText(day);
100 |
101 | return convertView;
102 | }
103 |
104 | public boolean isStart() {
105 | return isStart;
106 | }
107 |
108 | public void setStart(boolean start) {
109 | isStart = start;
110 | }
111 |
112 | public void setEnd(boolean end) {
113 | isEnd = end;
114 | }
115 |
116 | public void notifyDataSetChanged(ArrayList list) {
117 | mList.clear();
118 | mList.addAll(list);
119 | notifyDataSetChanged();
120 | }
121 |
122 | public void setStartDay(String startDay) {
123 | mStartDay = startDay;
124 | }
125 |
126 | public void setEndDay(String endDay) {
127 | mEndDay = endDay;
128 | }
129 |
130 | private class ViewHolder {
131 | TextView dayText;
132 |
133 | ViewHolder(View itemView) {
134 | dayText = itemView.findViewById(R.id.txtDay);
135 | }
136 | }
137 | }
--------------------------------------------------------------------------------
/library/src/main/java/pyxis/uzuki/live/sectioncalendarview/impl/OnDaySelectedListener.java:
--------------------------------------------------------------------------------
1 | package pyxis.uzuki.live.sectioncalendarview.impl;
2 |
3 | /**
4 | * SectionCalendarView
5 | * Class: OnDaySelectedListener
6 | * Created by Pyxis on 2017-12-20.
7 | */
8 |
9 | public interface OnDaySelectedListener {
10 | /**
11 | * Return selected date.
12 | * 선택한 날짜를 반환합니다.
13 | *
14 | * If the value is empty, the value is not selected. Be sure to handle exceptions.
15 | * 값이 비어있는 경우, 해당 값을 선택하지 않은 상태입니다. 반드시 예외 처리를 하세요.
16 | *
17 | * @param startDay StartDay / 시작일
18 | * @param endDay EndDay / 종료일
19 | */
20 | public void onDaySelected(String startDay, String endDay);
21 | }
22 |
--------------------------------------------------------------------------------
/library/src/main/java/pyxis/uzuki/live/sectioncalendarview/model/ColorData.kt:
--------------------------------------------------------------------------------
1 | package pyxis.uzuki.live.sectioncalendarview.model
2 |
3 | import android.graphics.Color
4 |
5 | /**
6 | * SectionCalendarView
7 | * Class: ColorData
8 | * Created by Pyxis on 2017-12-20.
9 | */
10 |
11 | data class ColorData(val defaultBgColor: Int = 0xFFFFFF, val defaultTextColor: Int = 0x999999,
12 | val todayTextColor: Int = 0x222222, val prevDayTextColor: Int = 0xEEEEEE,
13 | val startDayBgColor: Int = 0x628DE5, val startDayTextColor: Int = 0xFFFFFF,
14 | val endDayBgColor: Int = 0xEC3C3C, val endDayTextColor: Int = 0xFFFFFF,
15 | val selectedDayBgColor: Int = 0xEEEEEE) {
16 |
17 | class Builder {
18 | private var defaultBgColor: Int = Color.parseColor("#FFFFFF")
19 | private var defaultTextColor: Int = Color.parseColor("#999999")
20 | private var todayTextColor: Int = Color.parseColor("#222222")
21 | private var prevDayTextColor: Int = Color.parseColor("#EEEEEE")
22 | private var startDayBgColor: Int = Color.parseColor("#628DE5")
23 | private var startDayTextColor: Int = Color.parseColor("#FFFFFF")
24 | private var endDayBgColor: Int = Color.parseColor("#EC3C3C")
25 | private var endDayTextColor: Int = Color.parseColor("#FFFFFF")
26 | private var selectedDayBgColor: Int = Color.parseColor("#EEEEEE")
27 |
28 | /**
29 | * Set default background color
30 | * 기본 배경색 설정
31 | *
32 | * @param color default background color / 기본 배경색
33 | */
34 | fun setDefaultBgColor(color: String) = apply { this.defaultBgColor = Color.parseColor(color) }
35 |
36 | /**
37 | * Set default background color
38 | * 기본 배경색 설정
39 | *
40 | * @param color default background color / 기본 배경색
41 | */
42 | fun setDefaultBgColor(color: Int) = apply { this.defaultBgColor = color }
43 |
44 | /**
45 | * Set default text color
46 | * 기본 글자 색상 설정
47 | *
48 | * @param color default text color / 기본 글자 색상
49 | */
50 | fun setDefaultTextColor(color: String) = apply { this.defaultTextColor = Color.parseColor(color) }
51 |
52 | /**
53 | * Set default text color
54 | * 기본 글자 색상 설정
55 | *
56 | * @param color default text color / 기본 글자 색상
57 | */
58 | fun setDefaultTextColor(color: Int) = apply { this.defaultTextColor = color }
59 |
60 | /**
61 | * Set today's date color
62 | * 오늘 날짜 글자 색상 설정
63 | *
64 | * @param color today's date color / 오늘 날짜 글자 색상
65 | */
66 | fun setTodayTextColor(color: String) = apply { this.todayTextColor = Color.parseColor(color) }
67 |
68 | /**
69 | * Set today's date color
70 | * 오늘 날짜 글자 색상 설정
71 | *
72 | * @param color today's date color / 오늘 날짜 글자 색상
73 | */
74 | fun setTodayTextColor(color: Int) = apply { this.todayTextColor = color }
75 |
76 | /**
77 | * Set past date color
78 | * 지나간 날짜 글자 색상 설정
79 | *
80 | * @param color past date color / 지나간 날짜 글자 색상
81 | */
82 | fun setPrevDayTextColor(color: String) = apply { this.prevDayTextColor = Color.parseColor(color) }
83 |
84 | /**
85 | * Set past date color
86 | * 지나간 날짜 글자 색상 설정
87 | *
88 | * @param color past date color / 지나간 날짜 글자 색상
89 | */
90 | fun setPrevDayTextColor(color: Int) = apply { this.prevDayTextColor = color }
91 |
92 | /**
93 | * Set selected StartDay background color
94 | * 선택된 시작일 배경색 설정
95 | *
96 | * @param color StartDay background color / 시작일 배경색
97 | */
98 | fun setStartDayBgColor(color: String) = apply { this.startDayBgColor = Color.parseColor(color) }
99 |
100 | /**
101 | * Set selected StartDay background color
102 | * 선택된 시작일 배경색 설정
103 | *
104 | * @param color StartDay background color / 시작일 배경색
105 | */
106 | fun setStartDayBgColor(color: Int) = apply { this.startDayBgColor = color }
107 |
108 | /**
109 | * Set selected StartDay text color
110 | * 선택된 시작일 글자 색상 설정
111 | *
112 | * @param color StartDay text color / 시작일 글자 색상
113 | */
114 | fun setStartDayTextColor(color: String) = apply { this.startDayTextColor = Color.parseColor(color) }
115 |
116 | /**
117 | * Set selected StartDay text color
118 | * 선택된 시작일 글자 색상 설정
119 | *
120 | * @param color StartDay text color / 시작일 글자 색상
121 | */
122 | fun setStartDayTextColor(color: Int) = apply { this.startDayTextColor = color }
123 |
124 | /**
125 | * Set selected EndDay background color
126 | * 선택된 종료일 배경색 설정
127 | *
128 | * @param color EndDay background color / 종료일 배경색
129 | */
130 | fun setEndDayBgColor(color: String) = apply { this.endDayBgColor = Color.parseColor(color) }
131 |
132 | /**
133 | * Set selected EndDay background color
134 | * 선택된 종료일 배경색 설정
135 | *
136 | * @param color EndDay background color / 종료일 배경색
137 | */
138 | fun setEndDayBgColor(color: Int) = apply { this.endDayBgColor = color }
139 |
140 | /**
141 | * Set selected EndDay text color
142 | * 선택된 종료일 글자 색상 설정
143 | *
144 | * @param color EndDay text color / 종료일 글자 색상
145 | */
146 | fun setEndDayTextColor(color: String) = apply { this.endDayTextColor = Color.parseColor(color) }
147 |
148 | /**
149 | * Set selected EndDay text color
150 | * 선택된 종료일 글자 색상 설정
151 | *
152 | * @param color EndDay text color / 종료일 글자 색상
153 | */
154 | fun setEndDayTextColor(color: Int) = apply { this.endDayTextColor = color }
155 |
156 | /**
157 | * Set selected day background color
158 | * 선택된 날짜 배경색 설정
159 | *
160 | * @param color day text color / 날짜 배경색
161 | */
162 | fun setSelectedDayBgColor(color: String) = apply { this.selectedDayBgColor = Color.parseColor(color) }
163 |
164 | /**
165 | * Set selected day background color
166 | * 선택된 날짜 배경색 설정
167 | *
168 | * @param color day text color / 날짜 배경색
169 | */
170 | fun setSelectedDayBgColor(color: Int) = apply { this.selectedDayBgColor = color }
171 |
172 | fun build() = ColorData(defaultBgColor, defaultTextColor, todayTextColor,
173 | prevDayTextColor, startDayBgColor, startDayTextColor, endDayBgColor, endDayTextColor,
174 | selectedDayBgColor)
175 | }
176 | }
177 |
--------------------------------------------------------------------------------
/library/src/main/java/pyxis/uzuki/live/sectioncalendarview/model/DayData.kt:
--------------------------------------------------------------------------------
1 | package pyxis.uzuki.live.sectioncalendarview.model
2 |
3 | /**
4 | * SectionCalendarView
5 | * Class: DayData
6 | * Created by Pyxis on 2017-12-20.
7 | */
8 | data class DayData(var year: Int = 0, var month: Int = 0, var day: Int = 0, var dayStr: String = "", var fullDay: String = "")
--------------------------------------------------------------------------------
/library/src/main/java/pyxis/uzuki/live/sectioncalendarview/utils/CommonEx.kt:
--------------------------------------------------------------------------------
1 | @file:JvmName("CommonEx")
2 | @file:JvmMultifileClass
3 |
4 | package pyxis.uzuki.live.sectioncalendarview.utils
5 |
6 | import pyxis.uzuki.live.richutilskt.utils.isEmpty
7 |
8 | /**
9 | * SectionCalendarView
10 | * Class: CommonEx
11 | * Created by Pyxis on 2017-12-20.
12 | */
13 |
14 | fun notEmptyString(vararg args: String) = args.map { !it.isEmpty() }.all { it }
15 |
16 | fun compareGreater(a: String, b: String) = if (notEmptyString(a, b)) a.toIntOrZero() > b.toIntOrZero() else false
17 |
18 | fun compareLess(a: String, b: String) = if (notEmptyString(a, b)) a.toIntOrZero() < b.toIntOrZero() else false
19 |
20 | fun compareEqual(a: String, b: String): Boolean = if (notEmptyString(a, b)) a.toIntOrZero() == b.toIntOrZero() else false
21 |
22 | fun compareGreaterEqual(a: String, b: String) = if (notEmptyString(a, b)) a.toIntOrZero() >= b.toIntOrZero() else false
23 |
24 | fun compareLessEqual(a: String, b: String) = if (notEmptyString(a, b)) a.toIntOrZero() <= b.toIntOrZero() else false
25 |
26 | fun String.toIntOrZero(): Int = if (!this.isEmpty()) this.toInt() else 0
--------------------------------------------------------------------------------
/library/src/main/java/pyxis/uzuki/live/sectioncalendarview/utils/InternalEx.kt:
--------------------------------------------------------------------------------
1 | @file:JvmName("InternalEx")
2 | @file:JvmMultifileClass
3 |
4 | package pyxis.uzuki.live.sectioncalendarview.utils
5 |
6 | import pyxis.uzuki.live.richutilskt.utils.toDateString
7 |
8 | /**
9 | * SectionCalendarView
10 | * Class: InternalEx
11 | * Created by Pyxis on 2017-12-20.
12 | */
13 | fun assignPad10(number: Int) = if (number < 10) number.toString().padStart(2, '0') else number.toString()
14 |
15 | fun assignPad10(number: String) = if (number.toInt() < 10) number.padStart(2, '0') else number
16 |
17 | fun compareDayEqual(a: String, b: String) = compareEqual(a.toDateString("yyyy.MM.dd", "yyyyMMdd"), b)
18 |
19 | fun compareDayGreatEqual(a: String, b: String) = compareGreaterEqual(a.toDateString("yyyy.MM.dd", "yyyyMMdd"), b)
20 |
21 | fun compareDayLessEqual(a: String, b: String) = compareLessEqual(a.toDateString("yyyy.MM.dd", "yyyyMMdd"), b)
22 |
23 | fun compareDayGreat(a: String, b: String) = compareGreater(a.toDateString("yyyy.MM.dd", "yyyyMMdd"), b)
24 |
25 | fun compareDayLess(a: String, b: String) = compareLess(a.toDateString("yyyy.MM.dd", "yyyyMMdd"), b)
--------------------------------------------------------------------------------
/library/src/main/res/drawable-hdpi/ic_arrow_left.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindSekirun/SectionCalendarView/2505666b666e9d68718bc72da7edd46b9d43187d/library/src/main/res/drawable-hdpi/ic_arrow_left.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-hdpi/ic_arrow_right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindSekirun/SectionCalendarView/2505666b666e9d68718bc72da7edd46b9d43187d/library/src/main/res/drawable-hdpi/ic_arrow_right.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-mdpi/ic_arrow_left.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindSekirun/SectionCalendarView/2505666b666e9d68718bc72da7edd46b9d43187d/library/src/main/res/drawable-mdpi/ic_arrow_left.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-mdpi/ic_arrow_right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindSekirun/SectionCalendarView/2505666b666e9d68718bc72da7edd46b9d43187d/library/src/main/res/drawable-mdpi/ic_arrow_right.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/ic_arrow_left.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindSekirun/SectionCalendarView/2505666b666e9d68718bc72da7edd46b9d43187d/library/src/main/res/drawable-xhdpi/ic_arrow_left.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/ic_arrow_right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindSekirun/SectionCalendarView/2505666b666e9d68718bc72da7edd46b9d43187d/library/src/main/res/drawable-xhdpi/ic_arrow_right.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xxhdpi/ic_arrow_left.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindSekirun/SectionCalendarView/2505666b666e9d68718bc72da7edd46b9d43187d/library/src/main/res/drawable-xxhdpi/ic_arrow_left.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xxhdpi/ic_arrow_right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindSekirun/SectionCalendarView/2505666b666e9d68718bc72da7edd46b9d43187d/library/src/main/res/drawable-xxhdpi/ic_arrow_right.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xxxhdpi/ic_arrow_left.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindSekirun/SectionCalendarView/2505666b666e9d68718bc72da7edd46b9d43187d/library/src/main/res/drawable-xxxhdpi/ic_arrow_left.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xxxhdpi/ic_arrow_right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindSekirun/SectionCalendarView/2505666b666e9d68718bc72da7edd46b9d43187d/library/src/main/res/drawable-xxxhdpi/ic_arrow_right.png
--------------------------------------------------------------------------------
/library/src/main/res/layout/calendar_item.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
17 |
18 |
--------------------------------------------------------------------------------
/library/src/main/res/layout/calendar_view.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
13 |
14 |
17 |
18 |
25 |
26 |
32 |
33 |
41 |
42 |
48 |
49 |
50 |
51 |
52 |
56 |
57 |
63 |
64 |
72 |
73 |
81 |
82 |
90 |
91 |
99 |
100 |
108 |
109 |
117 |
118 |
126 |
127 |
128 |
129 |
133 |
134 |
142 |
143 |
144 |
--------------------------------------------------------------------------------
/library/src/main/res/values-ko/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | 일
3 | 월
4 | 화
5 | 수
6 | 목
7 | 금
8 | 토
9 | 이전 날짜를 선택하실 수 없습니다.
10 |
11 |
--------------------------------------------------------------------------------
/library/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Sun
3 | Mon
4 | Tue
5 | Wed
6 | Thr
7 | Fri
8 | Sat
9 | You can not select the previous date.
10 |
11 |
--------------------------------------------------------------------------------
/sample.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WindSekirun/SectionCalendarView/2505666b666e9d68718bc72da7edd46b9d43187d/sample.png
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':library', ':demo'
2 |
--------------------------------------------------------------------------------