android-week-view icon indicating copy to clipboard operation
android-week-view copied to clipboard

Add support for showing only a single day

Open RR28 opened this issue 2 years ago • 1 comments

i tried to filter to show only 1 day using the method shown to filter the weekend but only hides the weekend , please try to fix it image also tried to filter using only to show 1 image using the filter method only hides the weekend

RR28 avatar Jun 22 '22 03:06 RR28

This behaviour is intendet and not a bug. The idea is to always show the full week and only show the weekend if explicitely specified or if there are events on the weekend. Showing just a single days is currently not on my list.


Still if you want to just view a single day, you could replace

https://github.com/tobiasschuerg/android-week-view/blob/a6e69dc56af4e3172fdf3b9e47f86b0fb9cf5001/library/src/main/java/de/tobiasschuerg/weekview/view/WeekBackgroundView.kt#L55-L58

by

        .apply {
            clear()
            add(DayOfWeek.MONDAY)
        }

and get

tobiasschuerg avatar Jun 28 '22 09:06 tobiasschuerg