Releases: gantonious/MaterialDayPicker
Version 0.7.4 - Better Configuration + Bug fixes
- You can now manually override the first day of the week shown in the picker by using the newly added firstDayOfWeek property
This release can be downloaded from jcenter by adding the following to your project's build.gradle file:
dependencies {
implementation 'ca.antonious:materialdaypicker:0.7.4'
}
Version 0.7.3 - Better Configuration + Bug fixes
- Upgraded MaterialDayPicker to target API 30 and upgraded its AndroidX dependencies
This release can be downloaded from jcenter by adding the following to your project's build.gradle file:
dependencies {
implementation 'ca.antonious:materialdaypicker:0.7.3'
}
Version 0.7.2 - Better Configuration + Bug fixes
Bug fixes
- Fixes a bug when using android gradle plugin
3.6.1
that would cause building to fail due to not being able to find theselectionMode
attribute.
This release can be downloaded from jcenter by adding the following to your project's build.gradle file:
dependencies {
implementation 'ca.antonious:materialdaypicker:0.7.2'
}
Version 0.7.1 - Better Configuration + Bug fixes
Bug fixes
- Fixes an issue where calling setSelectedDays would cause selected days to flash off and on.
This release can be downloaded from jcenter by adding the following to your project's build.gradle file:
dependencies {
implementation 'ca.antonious:materialdaypicker:0.7.1'
}
Version 0.7.0 - Better Configuration
Configuration Improvements
- You can now enable/disable days from being selected using enableDay/disableDay methods. See more below.
- You can now set the selection mode via xml by using the
app:selectionMode
attribute.
This release can be downloaded from jcenter by adding the following to your project's build.gradle file:
dependencies {
implementation 'ca.antonious:materialdaypicker:0.7.0'
}
Version 0.6.0 - Handle Device Configuration
Localization
- Added device locale support. The day toggles are now rendered in the device's language and the first toggle will match the first day of the week for the device's locale.
- If using the device locale is not desired, the locale can be overridden using
materialDayPicker.local = ...
.
Dark Mode Support
- Added default night mode color assets.
Configuration Improvements
- Default colours are now based on the app's
colorPrimary
andcolorPrimaryDark
color values. - Text color can now be customized for both selected/deselected states by overriding the
daySelectedTextColor
anddayDeselectedTextColor
colors respectively.
This release can be downloaded from jcenter by adding the following to your project's build.gradle
file:
dependencies {
implementation 'ca.antonious:materialdaypicker:0.6.0'
}
Version 0.5.0 - Internal Improvements
- Migrated library to AndroidX
- Migrated library to Kotlin while maintaining Java compatibility
- Added KDocs to all public APIs
This release can be downloaded from jcenter by adding the following to your project's build.gradle
file:
dependencies {
implementation 'ca.antonious:materialdaypicker:0.5.0'
}
Version 0.4.0 - Selection Modes
Introduces Selection Modes that can be used to intercept user selections and transform it to the next state of day selections. This release ships with two selection modes:
DefaultSelectionMode
- Same functionality as previous versions. You can select/deselect as many days as you like
SingleSelectionMode
- When the user selects a new day the last selected day will be deselected
To change the selection selection mode do:
materialDayPicker.setSelectionMode(SingleSelectionMode.create());
If you need custom selection behaviour you can implement your own SelectionMode
.
This release can be downloaded from jcenter by adding the following to your project's build.gradle
file:
dependencies {
implementation 'ca.antonious:materialdaypicker:0.4.0'
}