OSDN Git Service

Completed weather support; new screen-saving mode.
authorDaniel Sandler <dsandler@google.com>
Fri, 30 Oct 2009 18:54:16 +0000 (14:54 -0400)
committerDaniel Sandler <dsandler@google.com>
Fri, 30 Oct 2009 18:54:16 +0000 (14:54 -0400)
commit91522cd49090f40e2e5b96c9b2e310b1adf1218a
tree0a258f38083ac3e12d8174cf4292e026cceb66d1
parent2d4898910c55bd5160fe4dde0d07d266a24ad8d6
Completed weather support; new screen-saving mode.

Now pulls high and low temperatures, as well as an icon (in
the form of a drawable resource), from the Genie widget,
periodically.  Known issues: artwork is mdpi and fuzzy (bug
in Genie).

Preliminary support for a new screen-saving mode (subject to
change) specifically for OLEDs with short B/R subpixel
lifetime.  Text is drawn in green on a black background; the
text also randomly jumps around the screen. Any user input
(touch, trackball/keypress, etc.) will restore the previous
view.

Screen saver mode kicks in after a delay (or, for debugging,
a longpress on "Dim").  Honors the current dimness setting,
so if the clock is currently in nightstand mode, the screen
saver will be very dim; otherwise (viz., desk mode) the
saver will be brighter.
res/layout/desk_clock.xml
res/layout/desk_clock_saver.xml [new file with mode: 0644]
res/layout/desk_clock_weather.xml
src/com/android/deskclock/DeskClock.java