1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2014 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<com.android.systemui.statusbar.phone.KeyguardBottomAreaView
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    android:id="@+id/keyguard_bottom_area"
21    android:layout_height="match_parent"
22    android:layout_width="match_parent"
23    android:outlineProvider="none" > <!-- Put it above the status bar header -->
24
25    <LinearLayout
26        android:id="@+id/keyguard_indication_area"
27        android:layout_width="match_parent"
28        android:layout_height="wrap_content"
29        android:layout_marginBottom="@dimen/keyguard_indication_margin_bottom"
30        android:layout_gravity="bottom|center_horizontal"
31        android:orientation="vertical">
32
33        <com.android.systemui.statusbar.phone.KeyguardIndicationTextView
34            android:id="@+id/keyguard_indication_text"
35            android:layout_width="match_parent"
36            android:layout_height="wrap_content"
37            android:gravity="center"
38            android:paddingStart="@dimen/keyguard_indication_text_padding"
39            android:paddingEnd="@dimen/keyguard_indication_text_padding"
40            android:textAppearance="@style/TextAppearance.Keyguard.BottomArea"
41            android:accessibilityLiveRegion="polite"/>
42
43        <com.android.systemui.statusbar.phone.KeyguardIndicationTextView
44            android:id="@+id/keyguard_indication_text_bottom"
45            android:layout_width="wrap_content"
46            android:layout_height="wrap_content"
47            android:gravity="center"
48            android:minHeight="48dp"
49            android:layout_gravity="center_horizontal"
50            android:layout_centerHorizontal="true"
51            android:paddingStart="@dimen/keyguard_indication_text_padding"
52            android:paddingEnd="@dimen/keyguard_indication_text_padding"
53            android:textAppearance="@style/TextAppearance.Keyguard.BottomArea"
54            android:maxLines="2"
55            android:ellipsize="end"
56            android:alpha=".8"
57            android:accessibilityLiveRegion="polite"
58            android:visibility="gone"/>
59
60    </LinearLayout>
61
62    <com.android.systemui.statusbar.KeyguardAffordanceView
63        android:id="@+id/camera_button"
64        android:layout_height="@dimen/keyguard_affordance_height"
65        android:layout_width="@dimen/keyguard_affordance_width"
66        android:layout_gravity="bottom|end"
67        android:src="@drawable/ic_camera_alt_24dp"
68        android:scaleType="center"
69        android:contentDescription="@string/accessibility_camera_button"
70        android:tint="?attr/wallpaperTextColor" />
71
72    <com.android.systemui.statusbar.KeyguardAffordanceView
73        android:id="@+id/left_button"
74        android:layout_height="@dimen/keyguard_affordance_height"
75        android:layout_width="@dimen/keyguard_affordance_width"
76        android:layout_gravity="bottom|start"
77        android:src="@*android:drawable/ic_phone"
78        android:scaleType="center"
79        android:contentDescription="@string/accessibility_phone_button"
80        android:tint="?attr/wallpaperTextColor" />
81
82    <ImageView
83        android:id="@+id/wallet_button"
84        android:layout_height="@dimen/keyguard_affordance_fixed_height"
85        android:layout_width="@dimen/keyguard_affordance_fixed_width"
86        android:layout_gravity="bottom|end"
87        android:scaleType="center"
88        android:tint="?android:attr/textColorPrimary"
89        android:src="@drawable/ic_wallet_lockscreen"
90        android:background="@drawable/keyguard_bottom_affordance_bg"
91        android:layout_marginEnd="@dimen/keyguard_affordance_horizontal_offset"
92        android:layout_marginBottom="@dimen/keyguard_affordance_vertical_offset"
93        android:contentDescription="@string/accessibility_wallet_button"
94        android:visibility="gone" />
95
96    <ImageView
97        android:id="@+id/controls_button"
98        android:layout_height="@dimen/keyguard_affordance_fixed_height"
99        android:layout_width="@dimen/keyguard_affordance_fixed_width"
100        android:layout_gravity="bottom|start"
101        android:scaleType="center"
102        android:tint="?android:attr/textColorPrimary"
103        android:src="@drawable/controls_icon"
104        android:background="@drawable/keyguard_bottom_affordance_bg"
105        android:layout_marginStart="@dimen/keyguard_affordance_horizontal_offset"
106        android:layout_marginBottom="@dimen/keyguard_affordance_vertical_offset"
107        android:contentDescription="@string/quick_controls_title"
108        android:visibility="gone" />
109
110    <FrameLayout
111        android:id="@+id/overlay_container"
112        android:layout_width="match_parent"
113        android:layout_height="match_parent">
114
115        <include layout="@layout/keyguard_bottom_area_overlay" />
116    </FrameLayout>
117
118    <include layout="@layout/ambient_indication"
119             android:id="@+id/ambient_indication_container" />
120</com.android.systemui.statusbar.phone.KeyguardBottomAreaView>
121