blob: ba05ccf5ce463920cea7e34b9c8aeba578400671 [file] [log] [blame]
Jim Millerdcb3d842012-08-23 19:18:12 -07001<?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. -->
Jorim Jaggi03c701e2014-04-02 12:39:51 +020021<com.android.keyguard.KeyguardStatusView
Jim Millerdcb3d842012-08-23 19:18:12 -070022 xmlns:android="http://schemas.android.com/apk/res/android"
Jorim Jaggi380ecb82014-03-14 17:25:20 +010023 xmlns:androidprv="http://schemas.android.com/apk/res-auto"
Adam Cohen7ffa8c02012-10-01 19:03:46 -070024 android:id="@+id/keyguard_status_view"
Jorim Jaggi03c701e2014-04-02 12:39:51 +020025 android:orientation="vertical"
Jim Miller0ff7f012012-10-11 20:40:01 -070026 android:layout_width="match_parent"
Jorim Jaggi8c1a44b2014-04-29 19:04:02 +020027 android:layout_height="wrap_content"
Jim Miller5ecd8112013-01-09 18:50:26 -080028 androidprv:layout_maxWidth="@dimen/keyguard_security_width"
29 androidprv:layout_maxHeight="@dimen/keyguard_security_height"
Jorim Jaggi321583d2014-08-22 01:33:33 +020030 android:gravity="center_horizontal|top">
Geoffrey Pitsch73321422017-07-17 09:31:55 -040031 <LinearLayout
Jim Millerf2dfc352012-08-29 18:42:21 -070032 android:layout_width="match_parent"
Jorim Jaggi03c701e2014-04-02 12:39:51 +020033 android:layout_height="wrap_content"
Lucas Dupin37d41182018-01-26 18:09:30 -080034 android:layout_marginBottom="@dimen/widget_vertical_padding"
Geoffrey Pitsch73321422017-07-17 09:31:55 -040035 android:orientation="vertical">
Alex Chauff7653d2018-02-01 17:18:08 +000036 <TextView
37 android:id="@+id/logout"
38 android:layout_height="@dimen/logout_button_layout_height"
39 android:layout_width="wrap_content"
40 android:layout_gravity="center_horizontal"
41 android:layout_centerHorizontal="true"
42 android:layout_marginBottom="@dimen/logout_button_margin_bottom"
43 android:gravity="center"
44 android:paddingLeft="@dimen/logout_button_padding_horizontal"
45 android:paddingRight="@dimen/logout_button_padding_horizontal"
46 android:background="@drawable/logout_button_background"
47 android:fontFamily="roboto-medium"
48 android:textAllCaps="true"
49 android:textColor="?android:attr/textColorPrimary"
50 android:textSize="13sp"
51 android:text="@*android:string/global_action_logout" />
52
Geoffrey Pitsch73321422017-07-17 09:31:55 -040053 <RelativeLayout
54 android:id="@+id/keyguard_clock_container"
Adrian Roos56021892017-02-27 20:25:09 +010055 android:layout_width="match_parent"
56 android:layout_height="wrap_content"
Geoffrey Pitsch73321422017-07-17 09:31:55 -040057 android:layout_gravity="center_horizontal|top">
58 <TextClock
59 android:id="@+id/clock_view"
60 android:layout_width="wrap_content"
61 android:layout_height="wrap_content"
62 android:layout_gravity="center_horizontal"
63 android:layout_centerHorizontal="true"
64 android:layout_alignParentTop="true"
Lucas Dupin41ff6952018-02-18 19:39:32 -080065 android:letterSpacing="0.03"
Lucas Dupina360e1e72017-07-17 17:25:20 -070066 android:textColor="?attr/wallpaperTextColor"
Geoffrey Pitsch73321422017-07-17 09:31:55 -040067 android:singleLine="true"
68 style="@style/widget_big_thin"
69 android:format12Hour="@string/keyguard_widget_12_hours_format"
Lucas Dupin3d7ccaf2018-04-02 21:19:23 -070070 android:format24Hour="@string/keyguard_widget_24_hours_format" />
Lucas Dupin6bd86012017-12-05 17:58:57 -080071 <View
72 android:id="@+id/clock_separator"
Lucas Dupind285cf02018-01-18 09:18:23 -080073 android:layout_width="@dimen/widget_separator_width"
74 android:layout_height="@dimen/widget_separator_thickness"
Lucas Dupin6bd86012017-12-05 17:58:57 -080075 android:layout_below="@id/clock_view"
76 android:background="#f00"
77 android:layout_centerHorizontal="true" />
Geoffrey Pitsch73321422017-07-17 09:31:55 -040078
79 <include layout="@layout/keyguard_status_area"
80 android:id="@+id/keyguard_status_area"
81 android:layout_width="match_parent"
82 android:layout_height="wrap_content"
Lucas Dupin6bd86012017-12-05 17:58:57 -080083 android:layout_below="@id/clock_separator" />
Geoffrey Pitsch73321422017-07-17 09:31:55 -040084 </RelativeLayout>
Adrian Roos56021892017-02-27 20:25:09 +010085
Jorim Jaggi93afa1d2014-06-03 20:56:32 +020086 <TextView
87 android:id="@+id/owner_info"
88 android:layout_marginLeft="16dp"
89 android:layout_marginRight="16dp"
90 android:layout_width="wrap_content"
91 android:layout_height="wrap_content"
92 android:layout_marginTop="@dimen/date_owner_info_margin"
Geoffrey Pitsch8f3dd1d2017-07-19 11:28:42 -040093 android:layout_gravity="center_horizontal"
Adrian Roos56021892017-02-27 20:25:09 +010094 android:layout_centerHorizontal="true"
Lucas Dupina360e1e72017-07-17 17:25:20 -070095 android:textColor="?attr/wallpaperTextColorSecondary"
Jorim Jaggi93afa1d2014-06-03 20:56:32 +020096 android:textSize="@dimen/widget_label_font_size"
Jorim Jaggie5716222015-05-14 14:13:20 -070097 android:letterSpacing="0.05"
Jorim Jaggi93afa1d2014-06-03 20:56:32 +020098 android:ellipsize="marquee"
99 android:singleLine="true" />
Geoffrey Pitsch73321422017-07-17 09:31:55 -0400100 </LinearLayout>
Jorim Jaggi03c701e2014-04-02 12:39:51 +0200101</com.android.keyguard.KeyguardStatusView>