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" > 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="@dimen/keyguard_indication_text_min_height" 49 android:layout_gravity="center_horizontal" 50 android:paddingStart="@dimen/keyguard_indication_text_padding" 51 android:paddingEnd="@dimen/keyguard_indication_text_padding" 52 android:textAppearance="@style/TextAppearance.Keyguard.BottomArea" 53 android:maxLines="2" 54 android:ellipsize="end" 55 android:alpha=".8" 56 android:accessibilityLiveRegion="polite" 57 android:visibility="gone"/> 58 59 </LinearLayout> 60 61 <com.android.systemui.animation.view.LaunchableImageView 62 android:id="@+id/start_button" 63 android:layout_height="@dimen/keyguard_affordance_fixed_height" 64 android:layout_width="@dimen/keyguard_affordance_fixed_width" 65 android:layout_gravity="start|bottom" 66 android:layout_marginStart="@dimen/keyguard_affordance_horizontal_offset" 67 android:layout_marginBottom="@dimen/keyguard_affordance_vertical_offset" 68 android:scaleType="fitCenter" 69 android:padding="@dimen/keyguard_affordance_fixed_padding" 70 android:tint="?android:attr/textColorPrimary" 71 android:background="@drawable/keyguard_bottom_affordance_bg" 72 android:foreground="@drawable/keyguard_bottom_affordance_selected_border" 73 android:visibility="invisible" /> 74 75 <com.android.systemui.animation.view.LaunchableImageView 76 android:id="@+id/end_button" 77 android:layout_height="@dimen/keyguard_affordance_fixed_height" 78 android:layout_width="@dimen/keyguard_affordance_fixed_width" 79 android:layout_gravity="end|bottom" 80 android:layout_marginEnd="@dimen/keyguard_affordance_horizontal_offset" 81 android:layout_marginBottom="@dimen/keyguard_affordance_vertical_offset" 82 android:scaleType="fitCenter" 83 android:padding="@dimen/keyguard_affordance_fixed_padding" 84 android:tint="?android:attr/textColorPrimary" 85 android:background="@drawable/keyguard_bottom_affordance_bg" 86 android:foreground="@drawable/keyguard_bottom_affordance_selected_border" 87 android:visibility="invisible" /> 88 89 <include 90 android:id="@+id/keyguard_settings_button" 91 layout="@layout/keyguard_settings_popup_menu" 92 android:layout_width="wrap_content" 93 android:layout_height="wrap_content" 94 android:layout_gravity="bottom|center" 95 android:layout_marginBottom="@dimen/keyguard_affordance_vertical_offset" 96 android:layout_marginHorizontal="@dimen/keyguard_affordance_horizontal_offset" 97 android:visibility="gone" 98 /> 99 100 <FrameLayout 101 android:id="@+id/overlay_container" 102 android:layout_width="match_parent" 103 android:layout_height="match_parent"> 104 105 <include layout="@layout/keyguard_bottom_area_overlay" /> 106 </FrameLayout> 107 108 <include layout="@layout/ambient_indication" 109 android:id="@id/ambient_indication_container" /> 110 111 <FrameLayout 112 android:id="@+id/smartspace_container" 113 android:layout_width="match_parent" 114 android:layout_height="wrap_content" 115 android:layout_gravity="bottom" 116 android:layout_marginBottom="@dimen/ambient_indication_margin_bottom" 117 android:visibility="gone"> 118 </FrameLayout> 119</com.android.systemui.statusbar.phone.KeyguardBottomAreaView> 120