• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2008 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<LinearLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="wrap_content"
21    android:orientation="horizontal">
22
23    <com.android.deskclock.DontPressWithParentLayout
24        android:id="@+id/indicator"
25        style="@style/alarm_list_left_column"
26        android:gravity="center"
27        android:orientation="vertical">
28        <CheckBox
29            android:id="@+id/clock_onoff"
30            android:focusable="false"
31            android:clickable="false"
32            android:duplicateParentState="true"
33            android:layout_height="wrap_content"
34            android:layout_width="wrap_content"
35            android:layout_gravity="center" />
36    </com.android.deskclock.DontPressWithParentLayout>
37
38    <ImageView
39        android:src="?android:attr/dividerVertical"
40        android:layout_width="1dip"
41        android:layout_height="match_parent"
42        android:paddingTop="4dip"
43        android:paddingBottom="4dip"
44        android:scaleType="fitXY"
45        android:gravity="fill_vertical" />
46
47    <!-- A layout that displays the time.  Shows time, am/pm (if 12-hour),
48         and an optional line below, used for day/days of week -->
49    <com.android.deskclock.DigitalClock android:id="@+id/digitalClock"
50        android:layout_width="wrap_content"
51        android:layout_height="match_parent"
52        android:gravity="center_vertical"
53        android:layout_weight="1"
54        android:layout_gravity="center_vertical"
55        android:orientation="vertical"
56        android:paddingLeft="16dip"
57        android:paddingRight="16dip">
58
59        <LinearLayout
60            android:id="@+id/time_wrapper"
61            android:layout_width="match_parent"
62            android:layout_height="wrap_content"
63            android:baselineAligned="true">
64
65            <com.android.deskclock.AndroidClockTextView
66                android:id="@+id/timeDisplay"
67                android:layout_width="wrap_content"
68                android:layout_height="wrap_content"
69                android:paddingRight="6dip"
70                android:textAppearance="?android:attr/textAppearanceMedium"
71                useClockTypeface="false"/>
72
73            <com.android.deskclock.AndroidClockTextView
74                android:id="@+id/am_pm"
75                android:layout_width="wrap_content"
76                android:layout_height="wrap_content"
77                android:textAppearance="?android:attr/textAppearanceMedium"
78                android:paddingRight="10dip"
79                android:textStyle="bold"
80                useClockTypeface="false"/>
81
82            <TextView android:id="@+id/label"
83                android:layout_width="0dip"
84                android:layout_height="wrap_content"
85                android:layout_weight="1"
86                android:paddingLeft="8dip"
87                android:textAppearance="?android:attr/textAppearanceSmall"
88                android:textColor="?android:attr/textColorSecondary"
89                android:textStyle="bold"
90                android:gravity="right"
91                android:singleLine="true"/>
92
93        </LinearLayout>
94
95        <TextView android:id="@+id/daysOfWeek"
96            android:layout_width="match_parent"
97            android:layout_height="wrap_content"
98            android:layout_below="@id/time_wrapper"
99            android:paddingTop="2dip"
100            android:textAppearance="?android:attr/textAppearanceSmall"
101            android:textColor="?android:attr/textColorTertiary"
102            />
103
104    </com.android.deskclock.DigitalClock>
105
106</LinearLayout>
107