KO
|
EN
gitlite — search
Search
#ai-agents
#typescript
#llm
#ai
#python
#macos
#mcp
#rust
#claude
#automation
#cli
#claude-code
ComposeCalendar
★ 36
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
obsidian-absolve
:
A theme overlay snippet for Obsidian.md
glow-hover.nvim
:
A Neovim plugin leveraging glow for LSPs hover responses.
KRACL
:
Source code for "KRACL: Contrastive Learning with Graph Context Modeling for Sparse Knowledge Graph Completion"
ggst-api-rs
:
A library for interfacing with the REST API of Guilty Gear Strive
laion5B-paper
:
Building the laion5B paper
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
ComposeCalendar
?
Download (.md)
# ComposeCalendar This library provides a beautiful date picker for Jetpack Compose, following the latest material 3 guidelines. <img src="docs/screenshots/daymonth.png" width="40%" /> <img src="docs/screenshots/year.png" width="40%" /> ## Dependency Make sure to add Maven Central to your repositories declarations: ```groovy repositories { mavenCentral() } ``` then add the latest ComposeCalendar version to your `app/build.gradle` file dependencies: ```groovy dependencies { implementation 'com.squaredem:composecalendar:1.1.0' } ``` ## How to use Showing the calendar: ```kotlin // first declare a variable that holds the dialog visibility state val showDialog = rememberSaveable { mutableStateOf(false) } // then show the dialog based on the state if (showDialog.value) { ComposeCalendar( onDone = { it: LocalDate -> // Hide dialog showDialog.value = false // Do something with the date }, onDismiss = { // Hide dialog showDialog.value = false } ) } ``` ### Start date and interval You can customize start, min and max dates. By default these are set as: ```kotlin ComposeCalendar( startDate = LocalDate.now(), minDate = LocalDate.now(), maxDate = LocalDate.MAX, ... ) ``` > Note: currently min and max dates are being coerced respectively to year **1900** and **2100**. ### Top bar customization You can choose whether to show or hide the top bar with the selected date. You can also pass a custom `DateFormat` for the string. ```kotlin ComposeCalendar( ... showSelectedDate = true, selectedDateFormat = DateFormat.getDateInstance(DateFormat.DEFAULT) ) ``` ## What's next - Date range selection (from date A to date B) - Customizations (fonts, colors, date intervals) - ... I am open to suggestions! Please share your ideas and your needs. ## License ComposeCalendar is distributed under the terms of the Apache License (Version 2.0). See the [license](LICENSE) for more information.