Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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 |