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.animation.view.LaunchableImageView 63 android:id="@+id/start_button" 64 android:layout_height="@dimen/keyguard_affordance_fixed_height" 65 android:layout_width="@dimen/keyguard_affordance_fixed_width" 66 android:layout_gravity="bottom|start" 67 android:scaleType="fitCenter" 68 android:padding="@dimen/keyguard_affordance_fixed_padding" 69 android:tint="?android:attr/textColorPrimary" 70 android:background="@drawable/keyguard_bottom_affordance_bg" 71 android:foreground="@drawable/keyguard_bottom_affordance_selected_border" 72 android:layout_marginStart="@dimen/keyguard_affordance_horizontal_offset" 73 android:layout_marginBottom="@dimen/keyguard_affordance_vertical_offset" 74 android:visibility="gone" /> 75 76 <com.android.systemui.animation.view.LaunchableImageView 77 android:id="@+id/end_button" 78 android:layout_height="@dimen/keyguard_affordance_fixed_height" 79 android:layout_width="@dimen/keyguard_affordance_fixed_width" 80 android:layout_gravity="bottom|end" 81 android:scaleType="fitCenter" 82 android:padding="@dimen/keyguard_affordance_fixed_padding" 83 android:tint="?android:attr/textColorPrimary" 84 android:background="@drawable/keyguard_bottom_affordance_bg" 85 android:foreground="@drawable/keyguard_bottom_affordance_selected_border" 86 android:layout_marginEnd="@dimen/keyguard_affordance_horizontal_offset" 87 android:layout_marginBottom="@dimen/keyguard_affordance_vertical_offset" 88 android:visibility="gone" /> 89 90 <FrameLayout 91 android:id="@+id/overlay_container" 92 android:layout_width="match_parent" 93 android:layout_height="match_parent"> 94 95 <include layout="@layout/keyguard_bottom_area_overlay" /> 96 </FrameLayout> 97 98 <include layout="@layout/ambient_indication" 99 android:id="@+id/ambient_indication_container" /> 100</com.android.systemui.statusbar.phone.KeyguardBottomAreaView> 101