keyguard_status_view.xml revision 25a272a9f6323f6a3513bb522d45e839449878ce
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3**
4** Copyright 2009, The Android Open Source Project
5**
6** Licensed under the Apache License, Version 2.0 (the "License")
7** you may not use this file except in compliance with the License.
8** You may obtain a copy of the License at
9**
10**     http://www.apache.org/licenses/LICENSE-2.0
11**
12** Unless required by applicable law or agreed to in writing, software
13** distributed under the License is distributed on an "AS IS" BASIS,
14** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15** See the License for the specific language governing permissions and
16** limitations under the License.
17*/
18-->
19
20<!-- This is a view that shows general status information in Keyguard. -->
21<com.android.internal.policy.impl.keyguard.KeyguardWidgetFrame
22    xmlns:android="http://schemas.android.com/apk/res/android"
23    android:id="@+id/keyguard_status_view"
24    android:layout_width="match_parent"
25    android:layout_height="match_parent"
26    android:layout_maxWidth="@dimen/keyguard_security_width"
27    android:layout_maxHeight="@dimen/keyguard_security_height"
28    android:gravity="center_horizontal">
29
30    <com.android.internal.policy.impl.keyguard.KeyguardStatusView
31        android:id="@+id/keyguard_status_view_face_palm"
32        android:orientation="vertical"
33        android:layout_width="match_parent"
34        android:layout_height="match_parent"
35        android:gravity="center_horizontal|top"
36        android:contentDescription="@android:string/keyguard_accessibility_status">
37
38        <LinearLayout android:layout_width="match_parent"
39                      android:layout_height="wrap_content"
40                      android:layout_gravity="center_horizontal|top"
41                      android:orientation="vertical"
42                      android:focusable="true">
43            <com.android.internal.policy.impl.keyguard.ClockView
44                android:id="@+id/clock_view"
45                android:layout_width="wrap_content"
46                android:layout_height="wrap_content"
47                android:layout_marginEnd="@dimen/kg_status_line_font_right_margin"
48                android:layout_gravity="right">
49
50                <TextView android:id="@+id/clock_text"
51                          android:layout_width="wrap_content"
52                          android:layout_height="wrap_content"
53                          android:singleLine="true"
54                          android:ellipsize="none"
55                          android:textSize="@dimen/kg_status_clock_font_size"
56                          android:textAppearance="?android:attr/textAppearanceMedium"
57                          android:textColor="#ffffffff"
58                          android:drawablePadding="2dip"
59                          />
60
61            </com.android.internal.policy.impl.keyguard.ClockView>
62
63            <include layout="@layout/keyguard_status_area" />
64        </LinearLayout>
65
66    </com.android.internal.policy.impl.keyguard.KeyguardStatusView>
67</com.android.internal.policy.impl.keyguard.KeyguardWidgetFrame>
68