keyguard_selector_view.xml revision f2dfc351dec58ad3c16f8496208b4e6e9c667efe
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3**
4** Copyright 2012, 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 the selector widget that allows the user to select an action. -->
21<com.android.internal.policy.impl.keyguard.KeyguardSelectorView
22    xmlns:prvandroid="http://schemas.android.com/apk/prv/res/android"
23    xmlns:android="http://schemas.android.com/apk/res/android"
24    android:id="@+id/keyguard_selector_view"
25    android:layout_width="match_parent"
26    android:layout_height="match_parent"
27    android:orientation="vertical">
28
29    <com.android.internal.policy.impl.keyguard.KeyguardWidgetPager
30        android:id="@+id/app_widget_container"
31        android:layout_width="match_parent"
32        android:layout_height="0dip"
33        android:layout_weight="1"
34        android:visibility="gone">
35            <!-- TODO: Remove this once supported as a widget -->
36            <include layout="@layout/keyguard_status_view"/>
37    </com.android.internal.policy.impl.keyguard.KeyguardWidgetPager>
38
39    <RelativeLayout
40        android:layout_width="wrap_content"
41        android:layout_height="0dip"
42        android:layout_weight="1"
43        android:layout_gravity="center"
44        android:gravity="center">
45
46        <com.android.internal.widget.multiwaveview.GlowPadView
47            android:id="@+id/glow_pad_view"
48            android:orientation="horizontal"
49            android:layout_width="wrap_content"
50            android:layout_height="wrap_content"
51            android:focusable="true"
52
53            prvandroid:targetDrawables="@*android:array/lockscreen_targets_with_camera"
54            prvandroid:targetDescriptions="@*android:array/lockscreen_target_descriptions_with_camera"
55            prvandroid:directionDescriptions="@*android:array/lockscreen_direction_descriptions"
56            prvandroid:handleDrawable="@*android:drawable/ic_lockscreen_handle"
57            prvandroid:outerRingDrawable="@*android:drawable/ic_lockscreen_outerring"
58            prvandroid:outerRadius="@*android:dimen/glowpadview_target_placement_radius"
59            prvandroid:innerRadius="@*android:dimen/glowpadview_inner_radius"
60            prvandroid:snapMargin="@*android:dimen/glowpadview_snap_margin"
61            prvandroid:feedbackCount="1"
62            prvandroid:vibrationDuration="20"
63            prvandroid:glowRadius="@*android:dimen/glowpadview_glow_radius"
64            prvandroid:pointDrawable="@*android:drawable/ic_lockscreen_glowdot"/>
65
66        <Button
67            android:id="@+id/emergency_call_button"
68            android:layout_width="wrap_content"
69            android:layout_height="wrap_content"
70            android:layout_gravity="end"
71            android:drawableLeft="@*android:drawable/lockscreen_emergency_button"
72            android:text="@string/kg_emergency_call_label"
73            style="?android:attr/buttonBarButtonStyle"
74            android:drawablePadding="8dip"
75            android:layout_alignRight="@id/glow_pad_view"
76            android:layout_alignTop="@id/glow_pad_view"
77            />
78
79    </RelativeLayout>
80
81</com.android.internal.policy.impl.keyguard.KeyguardSelectorView>
82
83