blob: fa14d1b5589639295e8dd220629920aa14e32afb [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"
70 android:format24Hour="@string/keyguard_widget_24_hours_format"
71 android:layout_marginBottom="@dimen/bottom_text_spacing_digital" />
Lucas Dupin6bd86012017-12-05 17:58:57 -080072 <View
73 android:id="@+id/clock_separator"
Lucas Dupind285cf02018-01-18 09:18:23 -080074 android:layout_width="@dimen/widget_separator_width"
75 android:layout_height="@dimen/widget_separator_thickness"
76 android:layout_marginTop="22dp"
Lucas Dupin6bd86012017-12-05 17:58:57 -080077 android:layout_below="@id/clock_view"
78 android:background="#f00"
Lucas Dupinf8e274c2018-02-22 17:01:55 -080079 android:backgroundTint="?attr/wallpaperTextColor"
Lucas Dupin6bd86012017-12-05 17:58:57 -080080 android:layout_centerHorizontal="true" />
Geoffrey Pitsch73321422017-07-17 09:31:55 -040081
82 <include layout="@layout/keyguard_status_area"
83 android:id="@+id/keyguard_status_area"
Lucas Dupind285cf02018-01-18 09:18:23 -080084 android:layout_marginTop="20dp"
Geoffrey Pitsch73321422017-07-17 09:31:55 -040085 android:layout_width="match_parent"
86 android:layout_height="wrap_content"
Lucas Dupin6bd86012017-12-05 17:58:57 -080087 android:layout_below="@id/clock_separator" />
Geoffrey Pitsch73321422017-07-17 09:31:55 -040088 </RelativeLayout>
Adrian Roos56021892017-02-27 20:25:09 +010089
Jorim Jaggi93afa1d2014-06-03 20:56:32 +020090 <TextView
91 android:id="@+id/owner_info"
92 android:layout_marginLeft="16dp"
93 android:layout_marginRight="16dp"
94 android:layout_width="wrap_content"
95 android:layout_height="wrap_content"
96 android:layout_marginTop="@dimen/date_owner_info_margin"
Geoffrey Pitsch8f3dd1d2017-07-19 11:28:42 -040097 android:layout_gravity="center_horizontal"
Adrian Roos56021892017-02-27 20:25:09 +010098 android:layout_centerHorizontal="true"
Lucas Dupina360e1e72017-07-17 17:25:20 -070099 android:textColor="?attr/wallpaperTextColorSecondary"
Jorim Jaggi93afa1d2014-06-03 20:56:32 +0200100 android:textSize="@dimen/widget_label_font_size"
Jorim Jaggie5716222015-05-14 14:13:20 -0700101 android:letterSpacing="0.05"
Jorim Jaggi93afa1d2014-06-03 20:56:32 +0200102 android:ellipsize="marquee"
103 android:singleLine="true" />
Geoffrey Pitsch73321422017-07-17 09:31:55 -0400104 </LinearLayout>
Jorim Jaggi03c701e2014-04-02 12:39:51 +0200105</com.android.keyguard.KeyguardStatusView>