Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show first two letters of days #10

Open
taouichaimaa opened this issue Nov 12, 2021 · 4 comments
Open

show first two letters of days #10

taouichaimaa opened this issue Nov 12, 2021 · 4 comments

Comments

@taouichaimaa
Copy link

i want to show the first two letters for days that start with the same letter ( T for tuesday and TH for Thursday , Su for sunday and S for saturday) how can I do this in the xml?

@Falke-Design

This comment has been minimized.

@taouichaimaa
Copy link
Author

Hi, I did what you suggested but the OVERRIDE annotation doesnt work with this function. I can override basically anything else but this.

@DavidProdinger
Copy link
Owner

You can extend WeekdaysPicker and then overwrite getDayLetter:

private String getDayLetter(int dayOfWeek) {
String weekday = new DateFormatSymbols().getShortWeekdays()[dayOfWeek];
return fullSize ? weekday : weekday.charAt(0) + "";
}

This is a private method, you won't be able to override this.

@taouichaimaa There is currently no functionality to get a day as two letters.

@Falke-Design
Copy link
Collaborator

Ups sorry looked to fast ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants