OSDN Git Service

Show weather forecast in DeskClock.
authorDaniel Sandler <dsandler@google.com>
Tue, 27 Oct 2009 20:46:57 +0000 (16:46 -0400)
committerDaniel Sandler <dsandler@google.com>
Thu, 29 Oct 2009 15:40:52 +0000 (11:40 -0400)
commit2763ab4cb6ee8d186eb8894ad006f699bfca3413
tree3dbc4b60bbe98026cb8cddd94b8883bd509e39bd
parent7e8e5ce386c6d22a4176408024809b50c475e982
Show weather forecast in DeskClock.

Currently querying the GenieWidget; if it's not present, no
weather is shown or even hinted at in the UI. If GenieWidget
is available but fails to respond to the query, we show
"Weather unavailable." (needs i18n)

Note that Genie's WeatherProvider is currently broken, so
for now you'll always see "Weather unavailable."

Other changes:

- Fix dimming/flashing on rotation.
- Fix other layout problems & inefficiencies.
AndroidManifest.xml
res/anim/dim_instant.xml [new file with mode: 0644]
res/anim/undim_instant.xml [new file with mode: 0644]
res/layout-land/desk_clock.xml
res/layout/desk_clock.xml
res/layout/desk_clock_time_date.xml
res/layout/desk_clock_weather.xml [new file with mode: 0644]
src/com/android/deskclock/DeskClock.java