blob: 9df78f1378b1c88e66623239a7eeccae7b32abb7 [file] [log] [blame]
Erin Yan8182bfd2019-08-14 12:03:12 -07001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 ~ Copyright (C) 2019 The Android Open Source Project
4 ~
5 ~ Licensed under the Apache License, Version 2.0 (the "License");
6 ~ you may not use this file except in compliance with the License.
7 ~ You may obtain a copy of the License at
8 ~
9 ~ http://www.apache.org/licenses/LICENSE-2.0
10 ~
11 ~ Unless required by applicable law or agreed to in writing, software
12 ~ distributed under the License is distributed on an "AS IS" BASIS,
13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 ~ See the License for the specific language governing permissions and
15 ~ limitations under the License
16 -->
17
18<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
Erin Yan5eb60a22019-09-04 11:55:30 -070019 android:id="@+id/unlock_dialog_parent"
Erin Yan8182bfd2019-08-14 12:03:12 -070020 android:layout_width="match_parent"
21 android:layout_height="match_parent"
22 android:gravity="center">
23
24 <LinearLayout
Erin Yan5eb60a22019-09-04 11:55:30 -070025 android:id="@+id/unlock_dialog"
Erin Yan8182bfd2019-08-14 12:03:12 -070026 android:layout_width="@dimen/unlock_dialog_width"
27 android:layout_height="wrap_content"
28 android:gravity="center"
29 android:layout_gravity="center"
30 android:orientation="vertical"
31 android:background="@drawable/unlock_dialog_background"
32 android:padding="@*android:dimen/car_padding_2">
33 <FrameLayout
34 android:layout_width="wrap_content"
35 android:layout_height="wrap_content">
36 <ProgressBar
37 android:layout_gravity="center"
38 android:layout_width="@dimen/unlock_dialog_progress_bar_size"
39 android:layout_height="@dimen/unlock_dialog_progress_bar_size" />
40 <ImageView
41 android:id="@+id/avatar"
42 android:layout_gravity="center"
43 android:layout_width="@dimen/unlock_dialog_avatar_size"
44 android:layout_height="@dimen/unlock_dialog_avatar_size"
45 android:scaleType="fitCenter"/>
46 </FrameLayout>
47
48 <TextView
49 android:id="@+id/user_name"
50 android:layout_height="wrap_content"
51 android:layout_width="wrap_content"
52 android:text="@string/unlock_dialog_default_user_name"
53 android:textSize="@*android:dimen/car_body1_size"
54 android:textColor="@android:color/white"/>
55
56 <TextView
57 android:id="@+id/unlocking_text"
58 android:layout_height="wrap_content"
59 android:layout_width="wrap_content"
60 android:layout_marginTop="@*android:dimen/car_padding_1"
61 android:text="@string/unlock_dialog_message_default"
62 android:textSize="@*android:dimen/car_body4_size"
63 android:textColor="@color/unlock_dialog_message_text_default"/>
64
65 <Button
66 android:id="@+id/enter_pin_button"
67 android:layout_marginTop="@*android:dimen/car_padding_1"
68 android:layout_height="wrap_content"
69 android:layout_width="wrap_content"
70 android:text="@string/unlock_dialog_button_text_pin"
71 style="@style/UnlockDialogButton"/>
72 </LinearLayout>
73</FrameLayout>