OSDN Git Service

Rework the AlarmAlert dialog layout.
authorPatrick Scott <phanna@android.com>
Wed, 13 May 2009 12:27:34 +0000 (08:27 -0400)
committerPatrick Scott <phanna@android.com>
Tue, 26 May 2009 14:02:29 +0000 (10:02 -0400)
commitf47699dd4704917713004099b5e3609be48653c4
tree9e03f3ee4ba7cce0b7703f71a7ae34c88b683b7b
parent3f77eebe6d9f277a8035c8c14b97c69023245b55
Rework the AlarmAlert dialog layout.

Make the layout portrait only to make it more uniform and nicer looking. Update
all the clock layouts to have the same size. The alert will have a larger clock
than the AlarmClock screen.

Remove the old hack to make the alert a dialog.

Inflate the views with a root so the layout params will be fill_parent. Use the
animate_circle resource in setBackgroundResource to clean up the code.

Add a new AlarmAlertFullScreen activity which makes the alert fullscreen with
the current wallpaper as the background. Query the keyguard manager during the
alarm broadcast to decide which activity to launch. The regular alert activity
shows above the current activity but the fullscreen activity will not show the
previous activity for security reasons.

Add the alarm_alert style that mimics the Theme.Dialog.Alert style but does not
rely on a private resource. Add dialog.9.png for the same reason.

Add a LinearLayout surrounding the alert layout to hold the background
wallpaper.
18 files changed:
AndroidManifest.xml
res/drawable/dialog.9.png [new file with mode: 0644]
res/layout-land/alarm_alert.xml [deleted file]
res/layout-land/alarm_clock.xml
res/layout/alarm_alert.xml
res/layout/alarm_clock.xml
res/layout/clock_basic_bw.xml
res/layout/clock_droid2.xml
res/layout/clock_droids.xml
res/layout/clock_googly.xml
res/layout/digital_clock.xml
res/values/styles.xml
src/com/android/alarmclock/AlarmAlert.java
src/com/android/alarmclock/AlarmAlertFullScreen.java [new file with mode: 0644]
src/com/android/alarmclock/AlarmAlertWakeLock.java
src/com/android/alarmclock/AlarmClock.java
src/com/android/alarmclock/AlarmReceiver.java
src/com/android/alarmclock/DigitalClock.java