finnmglas / Launcher

:rocket: A distraction-free minimal homescreen for Android.
https://play.google.com/store/apps/details?id=com.finnmglas.launcher
MIT License
152 stars 35 forks source link

Multiple date / time format options #63

Closed finnmglas closed 4 years ago

finnmglas commented 4 years ago

Allow users to select which date/time format to display (Note: \n is not only a linebreak - the lower line will be in a smaller TextView (like currently):

Adding an option to disable / enable seconds from being shown would be nice too (Using a toggle / switch).

The multiple date / time format options should be displayed in a dropdown.

finnmglas commented 4 years ago

I just implemented a spinner with all the date-formats listed below (except for flipped german). I called the flipped option inverse, as I felt that sounded better.

image

Inverse actually looks like this:

image

The selected format is stored as sharedPreferences, accessible through the launcherPreferences global object of the Launcher.

Possible compatibilty issues may arise, as they are stored as integers not as strings.
May be fixed later using some glue code ^^