Weekdays-Selector icon indicating copy to clipboard operation
Weekdays-Selector copied to clipboard

show first two letters of days

Open taouichaimaa opened this issue 4 years ago • 4 comments

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?

taouichaimaa avatar Nov 12 '21 10:11 taouichaimaa

You can extend WeekdaysPicker and then overwrite getDayLetter: https://github.com/DavidProdinger/Weekdays-Selector/blob/a01735ef1c8b6cb957545bdf59753c7a1fddccd9/weekdaysselector/src/main/java/com/dpro/widgets/WeekdaysPicker.java#L276-L279

Falke-Design avatar Nov 12 '21 10:11 Falke-Design

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

taouichaimaa avatar Nov 12 '21 11:11 taouichaimaa

You can extend WeekdaysPicker and then overwrite getDayLetter:

https://github.com/DavidProdinger/Weekdays-Selector/blob/a01735ef1c8b6cb957545bdf59753c7a1fddccd9/weekdaysselector/src/main/java/com/dpro/widgets/WeekdaysPicker.java#L276-L279

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.

DavidProdinger avatar Nov 12 '21 11:11 DavidProdinger

Ups sorry looked to fast ...

Falke-Design avatar Nov 12 '21 12:11 Falke-Design