Quivr / Android-Week-View

Android Week View is an android library to display calendars (week view or day view) within the app. It supports custom styling.
Apache License 2.0
258 stars 64 forks source link

One more question about NewEventTimeResolutionInMinutes #80

Closed empeusz closed 6 years ago

empeusz commented 6 years ago

Is it possible to set or modify NewEventTimeResolutionInMinutes so it can display hours, half-hours and 15min's as shown on attached png?

timeline

jhoobergs commented 6 years ago

@empeusz Currently not.

empeusz commented 6 years ago

@jhoobergs I see... can we move this one to pull request section then ? Or should I create a new one ?

jhoobergs commented 6 years ago

@empeusz You should create a PR yourself with the fixes.

empeusz commented 6 years ago

Finally I was able to change it by modyfing public void setupDateTimeInterpreter and Overriding

@Override public String interpretTime(int hour, int minutes) { String strMinutes = String.format("%02d", minutes); if (minutes > 0) { return strMinutes; } return hour + ":" + strMinutes; }});

May come in handy for other users ;)