A localized weekday picker for Android
root build.gradle
file:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
app build.gradle
file:
implementation 'com.github.myDario:DarioWeekDayPicker:1.0.2'
<com.labstyle.darioweekdaypicker.DarioWeekDayPicker
android:id="@+id/weekdayPicker"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
findViewById<DarioWeekDayPicker>(R.id.weekdayPicker).onSelectionChanged = { indexList ->
// ...
}
with (findViewById<DarioWeekDayPicker>(R.id.weekdayPicker)) {
clearSelection()
setSelected(weekdayIndex = 0, selected = true)
}