An Android week view component for selecting a date
root build.gradle
file:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
app build.gradle
file:
implementation 'com.github.myDario:DarioWeekViewDatePicker:1.0.3'
<com.labstyle.darioweekviewdatepicker.DarioWeekViewDatePicker
android:id="@+id/datePicker"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
findViewById<DarioWeekViewDatePicker>(R.id.datePicker).onSelectionChanged = { date ->
// ...
}
findViewById<DarioWeekViewDatePicker>(R.id.datePicker).setSelection(date)
- Removing scrollview and centering days
- Adding today button
- Adding Today string to date (in case today selected)
- Rename left/right arrows to resolve conflict in code
- Revert back scrollview (days kept centered)
- Enlarging today button
- add setter for today text resource.
- set date format to be DateFormat.MEDIUM instead of DateFormat.LONG
- add ',' char after "today" to date text
- change font weight to date title text
- change date title text margin