<Android Kotlin order List of Week Day Names by Lo...
# stackoverflow
r
Android Kotlin order List of Week Day Names by Localization I have an small problem. I create an List with the day names of a week that I use for the title row of an month calendar. But the problem is the first row of the calendar starts on different week days, given by the localization of the phone. For example USA on Sunday, Germany on Monday. How do I archive this sorting? fun getLocalizedShortWeekDays(): List { val locale = Locale.getDefault() val listOfDayNames = DayOfWeek.entries.map { it.getDisplayName(TextStyle.SHORT, locale)...