simonpoole / OpeningHoursFragment

Android UI element for displaying and editing an opening hours value
MIT License
9 stars 2 forks source link

Improve reachability of current year #40

Open ltog opened 4 years ago

ltog commented 4 years ago

When entering opening hours that are date-dependent, it would be helpful if in the year dropdown menu the current year was easier to reach. This would reduce the time required for entering opening hours.

Case 1: New rule -> Add year range

2000 should be 2020

Case 2: New rule -> Add date range ... -> Date - date, Variable date - date, etc. (all or almost all entries)

The current picker shows:

...
2099
2100
- (i.e. None) <-- initial selection
1900
1901
...

I'd like to see something like this instead:

...
2018
2019
- (i.e. None) <-- initial selection
2020
2021
...
simonpoole commented 4 years ago

1) is easy and done i nhttps://github.com/simonpoole/OpeningHoursFragment/commit/11339aac7dbe81afeea9f331c1a442d67c5098ad

Unluckily 2) would require rather trick indirection which needs a close look at first.