keyguard_screen_tab_unlock.xml revision 78bfb9829561876137c62ca1fff13760bfc77472
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3**
4** Copyright 2009, 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 general lock screen which shows information about the
21  state of the device, as well as instructions on how to get past it
22  depending on the state of the device.  It is the same for landscape
23  and portrait.-->
24<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
25    xmlns:tabunlock="http://schemas.android.com/apk/res/com.android.tabunlock"
26    android:layout_width="match_parent"
27    android:layout_height="match_parent"
28    android:orientation="vertical"
29    android:id="@+id/root">
30
31    <!-- top: status -->
32    <RelativeLayout
33        android:layout_height="0dip"
34        android:layout_weight="0.42"
35        android:layout_width="match_parent"
36        android:gravity="center">
37
38        <RelativeLayout android:id="@+id/transport_bg_protect"
39            android:layout_width="512dip"
40            android:layout_height="wrap_content"
41            android:gravity="center">
42
43            <!-- Status -->
44            <include layout="@layout/keyguard_screen_status_port"
45                android:layout_width="wrap_content"
46                android:layout_height="wrap_content"
47                android:layout_marginLeft="50dip"
48                android:layout_marginTop="50dip"
49                android:layout_alignParentTop="true"
50                android:layout_alignParentLeft="true"/>
51
52            <!-- Music transport control -->
53            <include android:id="@+id/transport"
54                layout="@layout/keyguard_transport_control"
55                android:layout_row="0"
56                android:layout_column="0"
57                android:layout_rowSpan="3"
58                android:layout_columnSpan="1"
59                android:layout_gravity="fill"
60                android:layout_width="match_parent"
61                android:layout_height="512dip"
62                />
63
64        </RelativeLayout>
65
66    </RelativeLayout>
67
68    <LinearLayout
69            android:layout_width="match_parent"
70            android:layout_height="0dip"
71            android:layout_weight="0.58"
72            android:orientation="vertical"
73            android:gravity="bottom">
74
75        <TextView
76            android:id="@+id/screenLocked"
77            android:layout_width="wrap_content"
78            android:layout_height="wrap_content"
79            android:layout_marginLeft="24dip"
80            android:textAppearance="?android:attr/textAppearanceMedium"
81            android:layout_marginTop="12dip"
82            android:drawablePadding="4dip"
83            />
84
85        <com.android.internal.widget.multiwaveview.GlowPadView
86            android:id="@+id/unlock_widget"
87            android:orientation="horizontal"
88            android:layout_width="wrap_content"
89            android:layout_height="wrap_content"
90            android:layout_gravity="center_horizontal"
91            android:gravity="center"
92            android:focusable="true"
93
94            android:targetDrawables="@array/lockscreen_targets_with_camera"
95            android:targetDescriptions="@array/lockscreen_target_descriptions_with_camera"
96            android:directionDescriptions="@array/lockscreen_direction_descriptions"
97            android:handleDrawable="@drawable/ic_lockscreen_handle"
98            android:outerRingDrawable="@drawable/ic_lockscreen_outerring"
99            android:outerRadius="@dimen/glowpadview_target_placement_radius"
100            android:innerRadius="@dimen/glowpadview_inner_radius"
101            android:snapMargin="@dimen/glowpadview_snap_margin"
102            android:feedbackCount="1"
103            android:vibrationDuration="20"
104            android:glowRadius="@dimen/glowpadview_glow_radius"
105            android:pointDrawable="@drawable/ic_lockscreen_glowdot"
106            />
107
108        <!-- emergency call button shown when sim is PUKd and tab_selector is hidden -->
109        <Button
110            android:id="@+id/emergencyCallButton"
111            android:layout_width="wrap_content"
112            android:layout_height="wrap_content"
113            android:drawableLeft="@drawable/ic_emergency"
114            android:layout_centerInParent="true"
115            android:layout_alignParentBottom="true"
116            android:layout_marginBottom="90dip"
117            style="@style/Widget.Button.Transparent"
118            android:drawablePadding="8dip"
119            android:visibility="gone"
120            />
121    </LinearLayout>
122
123</LinearLayout>
124
125