summaryrefslogtreecommitdiffstats
path: root/res/layout/desk_clock_time_date.xml
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@google.com>2009-11-18 14:21:01 -0500
committerDaniel Sandler <dsandler@google.com>2009-11-18 15:18:43 -0500
commitb95b7a63c403a17c3725e1ccfbd65b4283fd6a0f (patch)
tree2138630113c66cdf253bc4b21c4608b01b47d577 /res/layout/desk_clock_time_date.xml
parentf1e8069bcd1755d9ef2322b705d8d9d6b83728f0 (diff)
downloadandroid_packages_apps_DeskClock-b95b7a63c403a17c3725e1ccfbd65b4283fd6a0f.tar.gz
android_packages_apps_DeskClock-b95b7a63c403a17c3725e1ccfbd65b4283fd6a0f.tar.bz2
android_packages_apps_DeskClock-b95b7a63c403a17c3725e1ccfbd65b4283fd6a0f.zip
Myriad fixes & cleanups in DeskClock.
- Force the weather widget to actually fetch new data at the moment the device is docked, or when the screensaver disappears (if the device is plugged in). - Use Intent.FLAG_ACTIVITY_CLEAR_TOP to launch weather, music, and gallery to avoid jumping into the middle of their task stacks (http://b/2267831) - Fix layout issues with weather, particularly when the Genie widget is unavailable. (relates to http://b/2254472) - Internationalize the error message shown when Genie malfunctions. - Clean up weather & time displays to match UX specs more closely (fonts, shadow crop issues). - Remove some tabs in XML. - Internal cleanup: use "query" in the name of functions & variables related to getting updated weather from Genie; use "fetch" to refer to downloading new weather data from the network
Diffstat (limited to 'res/layout/desk_clock_time_date.xml')
-rw-r--r--res/layout/desk_clock_time_date.xml12
1 files changed, 8 insertions, 4 deletions
diff --git a/res/layout/desk_clock_time_date.xml b/res/layout/desk_clock_time_date.xml
index 411115eb3..2c1459514 100644
--- a/res/layout/desk_clock_time_date.xml
+++ b/res/layout/desk_clock_time_date.xml
@@ -27,12 +27,14 @@
<com.android.deskclock.DigitalClock android:id="@+id/time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginBottom="12dip"
+ android:layout_marginBottom="8dip"
>
<TextView android:id="@+id/timeDisplay"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:singleLine="true"
+ android:ellipsize="none"
android:gravity="center"
android:textSize="106sp"
android:textColor="#FFFFFFFF"
@@ -40,6 +42,7 @@
android:shadowDx="0"
android:shadowDy="0"
android:shadowRadius="3.0"
+ android:paddingBottom="3dip"
/>
@@ -47,9 +50,10 @@
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:gravity="bottom"
- android:textAppearance="?android:attr/textAppearanceMedium"
- android:textStyle="bold"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:textStyle="bold"
android:singleLine="true"
+ android:ellipsize="none"
android:layout_marginLeft="3dip"
android:shadowColor="#C0000000"
android:shadowDx="0"
@@ -63,7 +67,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="left"
- android:textAppearance="?android:attr/textAppearanceMedium"
+ android:textAppearance="?android:attr/textAppearanceMedium"
android:shadowColor="#C0000000"
android:shadowDx="0"
android:shadowDy="0"