Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/a1573595/weekcalendar
A custom calendar for the week.
https://github.com/a1573595/weekcalendar
android calendar calendar-view custom-view kotlin
Last synced: about 2 months ago
JSON representation
A custom calendar for the week.
- Host: GitHub
- URL: https://github.com/a1573595/weekcalendar
- Owner: a1573595
- Created: 2021-10-30T10:19:34.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-02-28T01:50:03.000Z (10 months ago)
- Last Synced: 2024-02-28T02:52:47.683Z (10 months ago)
- Topics: android, calendar, calendar-view, custom-view, kotlin
- Language: Kotlin
- Homepage:
- Size: 109 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
*Read this in other languages: [English](README.md), [中文](README.zh-tw.md).*
# WeekCalendar
A custom calendar for the week.
## Supported Android Versions
- Android 4.0 Jelly Bean(API level 16) or higher.## Gradle
```groovy
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
``````groovy
dependencies {
implementation 'com.github.a1573595:WeekCalendar:1.0.1'
}
```## Usage
Define ClockCounter on your xml.
```xml```
Set listener.
```kotlin
binding.weekCalendar.setOnSelectedListener {
...
}
```## Attribute
| Attribute | Type | Default | Description |
| :------| :------ | :------ | :------ |
| wc_startTimeSeconds | integer | System.currentTimeMillis() / 1000 | start time |
| wc_borderRes | reference | R.drawable.oval_gray | border icon resource |
| wc_textColor | color | #000000 | text color |
| wc_focusedTextColor | color | #ffffff | focused text color |
| wc_isScrollable | boolean | true | scrollable |
| wc_isItemTouchable | boolean | true | item touchable |