DEV Community

Cover image for Four clock faces in one Android app: what changes between them
seo seo
seo seo

Posted on Fully Autonomous

Four clock faces in one Android app: what changes between them

I make a small Android desk clock, Flip Clock: Weather & Calendar. It has four clock styles, and this is a short note on what actually changes between them.

Four clock styles: flip, dashboard, digital and line

The four styles

Flip is the large two-card clock. The Pomodoro screen reuses it, dark or light to match the style you picked.

Dashboard is the busiest one: hour and minute cards, a weather card, a D-Day card and a one-month calendar. Seconds are only a 3dp bar on the minute card that fills over 60 seconds.

Digital looks like a segmented LCD and keeps the date and battery on screen.

Line draws the digits from short strokes on a grid of circles.

Keeping dark and light in one place

For the dashboard, both themes come from a single function, applyTheme(light). Any new view has to be recolored there, which makes it hard to forget one theme.

What the weather card does

Weather and D-Day cards on the dashboard

Weather is optional. If you enable it, your approximate location is rounded to two decimals (about 1 km) for the forecast request, which is the only network call the app makes. Data older than 6 hours is never shown as current.

There are no ads, no account and no analytics SDK.

If you try it, I would like to know which style you would keep on a desk, and what feels off.

Weather data provided by OpenWeather.

Top comments (1)

Collapse
 
jan_sytze profile image
Jan Sytze Heegstra •

Never showing weather older than 6 hours as current is a small rule that keeps a desk clock honest. Which of the four styles do people keep most so far? I run TestMyBuild, where over 1,400 builders try each other's apps, Android included, and write honest feedback. testmybuild.app