maxkeppeler / sheets-compose-dialogs

✨ Enhancing Android UIs: A Jetpack Compose Library supporting a wide range of common use-cases with Material Design 3 Dialogs, Popups, and Bottom Sheets. ✨

Home Page:https://maxkeppeler.github.io/sheets-compose-dialogs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature: Week Number in Calendar Component (Optional)

nikqig opened this issue · comments

I've been using your calendar library for a project and it's been incredibly helpful. I have a specific feature query regarding the display of week numbers ("Uge nr") within the calendar, a common requirement in Denmark.

Could you tell me if your calendar component natively supports week number calculation and display, considering locale-specific settings (like week start day)? If this feature isn't currently available, I would appreciate any help on how to customize or extend the UI integration to include week numbers.

Your help would be appreciated. Thanks in advance and great job creating this tool.

Hi Nikqig, I'm happy to hear that other developers like and can use the library! Could you show me how calendars typically look there with the week numbers? The general issue I've had so far with the calendar dialog/view was that the space was usually limited. I wonder if there's enough space to display the week number, and also in which ways it makes sense. If I know that, I will be able to add it. Can you show me some examples?

Yeah ofcourse! Here you go:

thumbnail_IMG_2189

thumbnail_IMG_2188

As you can see, the week numbers are compact and don't occupy a lot of space on the left side :)

I accept it as a feature, then. My time is limited though, and I'm experiencing a small personal crisis, so I will do it when I can and feel like it. I hope that's understandable!

Calendar weeks for the monthly and weekly view are supported in the upcoming version.

Use displayCalendarWeeks in the CalendarConfig.