alarm_clock.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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 xmlns:android="http://schemas.android.com/apk/res/android"
  14. android:id="@+id/base_layout"
  15. android:layout_width="match_parent"
  16. android:layout_height="match_parent"
  17. android:background="@drawable/ic_background"
  18. android:orientation="vertical">
  19. <LinearLayout android:id="@+id/add_alarm"
  20. android:clickable="true"
  21. android:focusable="true"
  22. android:background="@android:drawable/list_selector_background"
  23. android:layout_width="match_parent"
  24. android:layout_height="wrap_content"
  25. android:orientation="horizontal">
  26. <ImageView
  27. style="@style/alarm_list_left_column"
  28. android:duplicateParentState="true"
  29. android:gravity="center"
  30. android:scaleType="center"
  31. android:src="@drawable/add_alarm" />
  32. <TextView
  33. android:duplicateParentState="true"
  34. android:layout_height="wrap_content"
  35. android:layout_width="wrap_content"
  36. android:layout_gravity="center_vertical"
  37. android:textAppearance="?android:attr/textAppearanceLarge"
  38. android:textColor="?android:attr/textColorPrimary"
  39. android:text="@string/add_alarm" />
  40. </LinearLayout>
  41. <ImageView
  42. android:layout_width="match_parent"
  43. android:layout_height="wrap_content"
  44. android:scaleType="fitXY"
  45. android:gravity="fill_horizontal"
  46. android:src="@android:drawable/divider_horizontal_dark" />
  47. <ListView
  48. android:id="@+id/alarms_list"
  49. android:layout_width="match_parent"
  50. android:layout_height="wrap_content"
  51. android:layout_weight="1" />
  52. <LinearLayout
  53. android:layout_width="match_parent"
  54. android:layout_height="wrap_content"
  55. android:orientation="horizontal" >
  56. <ImageButton android:id="@+id/desk_clock_button"
  57. style="@style/ButtonStripLeft"
  58. android:layout_width="wrap_content"
  59. android:layout_height="wrap_content"
  60. android:src="@drawable/ic_clock_strip_desk_clock"
  61. android:contentDescription="@string/desk_clock_button_description"/>
  62. <com.cn.daming.deskclock.DigitalClock
  63. style="@style/ButtonStripRight"
  64. android:layout_width="match_parent"
  65. android:layout_height="match_parent">
  66. <LinearLayout
  67. android:layout_width="match_parent"
  68. android:layout_height="wrap_content"
  69. android:baselineAligned="true">
  70. <TextView android:id="@+id/timeDisplay"
  71. android:layout_width="wrap_content"
  72. android:layout_height="wrap_content"
  73. android:paddingRight="6dip"
  74. android:textSize="45sp"
  75. android:textColor="?android:attr/textColorPrimary" />
  76. <TextView android:id="@+id/am_pm"
  77. android:layout_width="wrap_content"
  78. android:layout_height="wrap_content"
  79. android:textAppearance="?android:attr/textAppearanceSmall"
  80. android:textColor="?android:attr/textColorPrimary" />
  81. </LinearLayout>
  82. </com.cn.daming.deskclock.DigitalClock>
  83. </LinearLayout>
  84. </LinearLayout>