summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Scott <phanna@android.com>2009-11-19 12:03:36 -0500
committerPatrick Scott <phanna@android.com>2009-11-19 12:03:36 -0500
commit80124aa02f01228f8726e8c972a5882e0f4d10d7 (patch)
treecb900b310a5efcecd0f5473f66c467e6b1b2fa27
parentbb4dbac9655226b87502655c1fa7e8fca1357bf4 (diff)
downloadandroid_packages_apps_DeskClock-80124aa02f01228f8726e8c972a5882e0f4d10d7.tar.gz
android_packages_apps_DeskClock-80124aa02f01228f8726e8c972a5882e0f4d10d7.tar.bz2
android_packages_apps_DeskClock-80124aa02f01228f8726e8c972a5882e0f4d10d7.zip
Make the alert layout a little better.
Align the time and am/pm text. Pad the alarm message a little more as well as the time. Use standard colors and appearances for some of the text.
-rw-r--r--res/layout/alarm_alert.xml19
1 files changed, 10 insertions, 9 deletions
diff --git a/res/layout/alarm_alert.xml b/res/layout/alarm_alert.xml
index 5763c18ff..57588c30b 100644
--- a/res/layout/alarm_alert.xml
+++ b/res/layout/alarm_alert.xml
@@ -30,6 +30,7 @@
<TextView android:id="@+id/alertTitle"
style="?android:attr/textAppearanceLarge"
+ android:padding="5dip"
android:singleLine="true"
android:ellipsize="end"
android:gravity="center"
@@ -46,23 +47,23 @@
<com.android.deskclock.DigitalClock
style="@style/clock"
- android:paddingTop="20dip"
- android:paddingBottom="20dip"
- android:gravity="center">
+ android:paddingTop="30dip"
+ android:paddingBottom="30dip"
+ android:baselineAligned="true"
+ android:gravity="center_horizontal">
<TextView android:id="@+id/timeDisplay"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:gravity="center"
android:textSize="64sp"
- android:textColor="@color/white"/>
+ android:textColor="?android:attr/textColorPrimary"/>
<TextView android:id="@+id/am_pm"
android:layout_width="wrap_content"
- android:layout_height="fill_parent"
- android:gravity="bottom"
- android:textSize="28sp"
- android:textColor="@color/white"/>
+ android:layout_height="wrap_content"
+ android:textStyle="bold"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:textColor="?android:attr/textColorPrimary"/>
</com.android.deskclock.DigitalClock>