| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2008 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <LinearLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| android:paddingLeft="5dip" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content"> |
| |
| <!-- A layout that displays the time. Shows time, am/pm (if 12-hour), |
| and an optional line below, used for day/days of week --> |
| |
| <com.android.alarmclock.DigitalClock android:id="@+id/digitalClock" |
| android:layout_width="wrap_content" |
| android:layout_height="match_parent" |
| android:layout_weight="1" |
| android:gravity="center_vertical" |
| android:orientation="vertical" |
| android:paddingLeft="8dip" |
| android:paddingRight="8dip"> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content"> |
| |
| <TextView android:id="@+id/timeDisplay" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textSize="30sp" |
| android:textColor="@color/white"/> |
| |
| <LinearLayout android:id="@+id/am_pm" |
| android:layout_width="wrap_content" |
| android:layout_height="match_parent" |
| android:layout_marginLeft="4dip" |
| android:orientation="vertical"> |
| |
| <TextView android:id="@+id/am" |
| android:layout_width="wrap_content" |
| android:layout_height="match_parent" |
| android:gravity="bottom" |
| android:layout_weight=".5" |
| android:includeFontPadding="false" |
| android:textSize="12sp"/> |
| |
| <TextView android:id="@+id/pm" |
| android:layout_width="wrap_content" |
| android:layout_height="match_parent" |
| android:gravity="top" |
| android:layout_weight=".5" |
| android:includeFontPadding="false" |
| android:textSize="12sp"/> |
| |
| </LinearLayout> |
| </LinearLayout> |
| |
| <TextView android:id="@+id/daysOfWeek" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:textSize="10sp" |
| android:textColor="@color/ltgrey"/> |
| |
| <TextView android:id="@+id/label" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:textSize="12sp" |
| android:textColor="@color/ltgrey" |
| android:textStyle="bold|italic" |
| android:singleLine="true"/> |
| |
| </com.android.alarmclock.DigitalClock> |
| |
| <CheckBox android:id="@+id/alarmButton" |
| android:focusable="false" |
| android:layout_width="60dip" |
| android:layout_height="76dip" |
| android:layout_gravity="center_vertical"/> |
| |
| </LinearLayout> |