alarm_alert.xml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright (C) 2007 The Android Open Source Project
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. -->
  13. <LinearLayout
  14. xmlns:android="http://schemas.android.com/apk/res/android"
  15. android:layout_width="match_parent"
  16. android:layout_height="match_parent"
  17. android:gravity="center">
  18. <LinearLayout
  19. android:layout_width="wrap_content"
  20. android:layout_height="wrap_content"
  21. android:layout_gravity="center"
  22. android:gravity="center_horizontal"
  23. android:background="@drawable/dialog"
  24. android:orientation="vertical">
  25. <TextView android:id="@+id/alertTitle"
  26. style="?android:attr/textAppearanceLarge"
  27. android:padding="5dip"
  28. android:singleLine="true"
  29. android:ellipsize="end"
  30. android:gravity="center"
  31. android:layout_width="match_parent"
  32. android:layout_height="wrap_content" />
  33. <ImageView
  34. android:layout_width="match_parent"
  35. android:layout_height="1dip"
  36. android:scaleType="fitXY"
  37. android:gravity="fill_horizontal"
  38. android:src="@drawable/dialog_divider_horizontal_light"
  39. android:layout_marginLeft="10dip"
  40. android:layout_marginRight="10dip"/>
  41. <com.cn.daming.deskclock.DigitalClock
  42. style="@style/clock"
  43. android:paddingTop="30dip"
  44. android:paddingBottom="30dip"
  45. android:baselineAligned="true"
  46. android:gravity="center_horizontal">
  47. <TextView android:id="@+id/timeDisplay"
  48. android:layout_width="wrap_content"
  49. android:layout_height="wrap_content"
  50. android:textSize="64sp"
  51. android:textColor="?android:attr/textColorPrimary"/>
  52. <TextView android:id="@+id/am_pm"
  53. android:layout_width="wrap_content"
  54. android:layout_height="wrap_content"
  55. android:textStyle="bold"
  56. android:textAppearance="?android:attr/textAppearanceMedium"
  57. android:textColor="?android:attr/textColorPrimary"/>
  58. </com.cn.daming.deskclock.DigitalClock>
  59. <LinearLayout
  60. android:layout_width="wrap_content"
  61. android:layout_height="wrap_content"
  62. style="@android:style/ButtonBar">
  63. <Button
  64. android:id="@+id/snooze"
  65. android:layout_width="wrap_content"
  66. android:layout_height="wrap_content"
  67. android:layout_weight="3"
  68. android:text="@string/alarm_alert_snooze_text" />
  69. <!-- blank stretchable view -->
  70. <View
  71. android:layout_width="2dip"
  72. android:layout_height="2dip"
  73. android:layout_gravity="fill_horizontal"
  74. android:layout_weight="1"/>
  75. <Button
  76. android:id="@+id/dismiss"
  77. android:layout_width="wrap_content"
  78. android:layout_height="wrap_content"
  79. android:layout_weight="3"
  80. android:text="@string/alarm_alert_dismiss_text" />
  81. </LinearLayout>
  82. </LinearLayout>
  83. </LinearLayout>