• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2009 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<!-- Special "screen saver mode" with just the time/date on black. -->
18<FrameLayout
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    android:id="@+id/saver_container"
21    android:layout_width="match_parent"
22    android:layout_height="match_parent"
23    android:background="@color/black">
24
25    <!--  Extra layout to let the clock float in the window -->
26    <LinearLayout
27        android:id="@+id/main_clock"
28        android:layout_width="wrap_content"
29        android:layout_height="wrap_content"
30        android:layout_marginBottom="@dimen/screensaver_margin"
31        android:layout_marginEnd="@dimen/screensaver_margin"
32        android:layout_marginStart="@dimen/screensaver_margin"
33        android:layout_marginTop="@dimen/time_margin_top"
34        android:orientation="vertical">
35
36        <com.android.deskclock.AnalogClock
37            android:id="@+id/analog_clock"
38            android:layout_width="wrap_content"
39            android:layout_height="wrap_content"
40            android:layout_gravity="center_horizontal"
41            android:layout_marginBottom="@dimen/bottom_text_spacing_analog" />
42
43        <TextClock
44            android:id="@+id/digital_clock"
45            style="@style/big_thin"
46            android:layout_width="wrap_content"
47            android:layout_height="wrap_content"
48            android:layout_gravity="center"
49            android:layout_marginBottom="@dimen/bottom_text_spacing_digital"
50            android:ellipsize="none"
51            android:gravity="center"
52            android:singleLine="true"
53            android:textColor="@color/white"
54            android:textSize="@dimen/main_clock_font_size" />
55
56        <include layout="@layout/date_and_next_alarm_time" />
57
58    </LinearLayout>
59
60</FrameLayout>