Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 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. --> |
Jorim Jaggi | 03c701e | 2014-04-02 12:39:51 +0200 | [diff] [blame] | 21 | <com.android.keyguard.KeyguardStatusView |
Jim Miller | dcb3d84 | 2012-08-23 19:18:12 -0700 | [diff] [blame] | 22 | xmlns:android="http://schemas.android.com/apk/res/android" |
Jorim Jaggi | 380ecb8 | 2014-03-14 17:25:20 +0100 | [diff] [blame] | 23 | xmlns:androidprv="http://schemas.android.com/apk/res-auto" |
Adam Cohen | 7ffa8c0 | 2012-10-01 19:03:46 -0700 | [diff] [blame] | 24 | android:id="@+id/keyguard_status_view" |
Jorim Jaggi | 03c701e | 2014-04-02 12:39:51 +0200 | [diff] [blame] | 25 | android:orientation="vertical" |
Jim Miller | 0ff7f01 | 2012-10-11 20:40:01 -0700 | [diff] [blame] | 26 | android:layout_width="match_parent" |
Jorim Jaggi | 8c1a44b | 2014-04-29 19:04:02 +0200 | [diff] [blame] | 27 | android:layout_height="wrap_content" |
Jim Miller | 5ecd811 | 2013-01-09 18:50:26 -0800 | [diff] [blame] | 28 | androidprv:layout_maxWidth="@dimen/keyguard_security_width" |
| 29 | androidprv:layout_maxHeight="@dimen/keyguard_security_height" |
Jorim Jaggi | 321583d | 2014-08-22 01:33:33 +0200 | [diff] [blame] | 30 | android:gravity="center_horizontal|top"> |
Geoffrey Pitsch | 7332142 | 2017-07-17 09:31:55 -0400 | [diff] [blame] | 31 | <LinearLayout |
Jim Miller | f2dfc35 | 2012-08-29 18:42:21 -0700 | [diff] [blame] | 32 | android:layout_width="match_parent" |
Jorim Jaggi | 03c701e | 2014-04-02 12:39:51 +0200 | [diff] [blame] | 33 | android:layout_height="wrap_content" |
Lucas Dupin | 37d4118 | 2018-01-26 18:09:30 -0800 | [diff] [blame] | 34 | android:layout_marginBottom="@dimen/widget_vertical_padding" |
Geoffrey Pitsch | 7332142 | 2017-07-17 09:31:55 -0400 | [diff] [blame] | 35 | android:orientation="vertical"> |
Alex Chau | ff7653d | 2018-02-01 17:18:08 +0000 | [diff] [blame] | 36 | <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 Pitsch | 7332142 | 2017-07-17 09:31:55 -0400 | [diff] [blame] | 53 | <RelativeLayout |
| 54 | android:id="@+id/keyguard_clock_container" |
Adrian Roos | 5602189 | 2017-02-27 20:25:09 +0100 | [diff] [blame] | 55 | android:layout_width="match_parent" |
| 56 | android:layout_height="wrap_content" |
Geoffrey Pitsch | 7332142 | 2017-07-17 09:31:55 -0400 | [diff] [blame] | 57 | 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 Dupin | 41ff695 | 2018-02-18 19:39:32 -0800 | [diff] [blame] | 65 | android:letterSpacing="0.03" |
Lucas Dupin | a360e1e7 | 2017-07-17 17:25:20 -0700 | [diff] [blame] | 66 | android:textColor="?attr/wallpaperTextColor" |
Geoffrey Pitsch | 7332142 | 2017-07-17 09:31:55 -0400 | [diff] [blame] | 67 | android:singleLine="true" |
| 68 | style="@style/widget_big_thin" |
| 69 | android:format12Hour="@string/keyguard_widget_12_hours_format" |
Lucas Dupin | 3d7ccaf | 2018-04-02 21:19:23 -0700 | [diff] [blame] | 70 | android:format24Hour="@string/keyguard_widget_24_hours_format" /> |
Lucas Dupin | 6bd8601 | 2017-12-05 17:58:57 -0800 | [diff] [blame] | 71 | <View |
| 72 | android:id="@+id/clock_separator" |
Lucas Dupin | d285cf0 | 2018-01-18 09:18:23 -0800 | [diff] [blame] | 73 | android:layout_width="@dimen/widget_separator_width" |
| 74 | android:layout_height="@dimen/widget_separator_thickness" |
Lucas Dupin | 6bd8601 | 2017-12-05 17:58:57 -0800 | [diff] [blame] | 75 | android:layout_below="@id/clock_view" |
| 76 | android:background="#f00" |
| 77 | android:layout_centerHorizontal="true" /> |
Geoffrey Pitsch | 7332142 | 2017-07-17 09:31:55 -0400 | [diff] [blame] | 78 | |
| 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 Dupin | 6bd8601 | 2017-12-05 17:58:57 -0800 | [diff] [blame] | 83 | android:layout_below="@id/clock_separator" /> |
Geoffrey Pitsch | 7332142 | 2017-07-17 09:31:55 -0400 | [diff] [blame] | 84 | </RelativeLayout> |
Adrian Roos | 5602189 | 2017-02-27 20:25:09 +0100 | [diff] [blame] | 85 | |
Jorim Jaggi | 93afa1d | 2014-06-03 20:56:32 +0200 | [diff] [blame] | 86 | <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 Pitsch | 8f3dd1d | 2017-07-19 11:28:42 -0400 | [diff] [blame] | 93 | android:layout_gravity="center_horizontal" |
Adrian Roos | 5602189 | 2017-02-27 20:25:09 +0100 | [diff] [blame] | 94 | android:layout_centerHorizontal="true" |
Lucas Dupin | a360e1e7 | 2017-07-17 17:25:20 -0700 | [diff] [blame] | 95 | android:textColor="?attr/wallpaperTextColorSecondary" |
Jorim Jaggi | 93afa1d | 2014-06-03 20:56:32 +0200 | [diff] [blame] | 96 | android:textSize="@dimen/widget_label_font_size" |
Jorim Jaggi | e571622 | 2015-05-14 14:13:20 -0700 | [diff] [blame] | 97 | android:letterSpacing="0.05" |
Jorim Jaggi | 93afa1d | 2014-06-03 20:56:32 +0200 | [diff] [blame] | 98 | android:ellipsize="marquee" |
| 99 | android:singleLine="true" /> |
Geoffrey Pitsch | 7332142 | 2017-07-17 09:31:55 -0400 | [diff] [blame] | 100 | </LinearLayout> |
Jorim Jaggi | 03c701e | 2014-04-02 12:39:51 +0200 | [diff] [blame] | 101 | </com.android.keyguard.KeyguardStatusView> |