124ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller<?xml version="1.0" encoding="utf-8"?>
224ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller<!--
324ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller**
424ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller** Copyright 2009, The Android Open Source Project
524ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller**
624ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller** Licensed under the Apache License, Version 2.0 (the "License")
724ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller** you may not use this file except in compliance with the License.
824ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller** You may obtain a copy of the License at
924ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller**
1024ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller**     http://www.apache.org/licenses/LICENSE-2.0
1124ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller**
1224ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller** Unless required by applicable law or agreed to in writing, software
1324ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller** distributed under the License is distributed on an "AS IS" BASIS,
1424ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1524ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller** See the License for the specific language governing permissions and
1624ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller** limitations under the License.
1724ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller*/
1824ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller-->
1924ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller
2024ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller<!-- This is the general lock screen which shows information about the
2124ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller  state of the device, as well as instructions on how to get past it
2224ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller  depending on the state of the device.-->
230d244193bed0c995e2beaff5e217200457b28b9dJim Miller<GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
24980a938c1c9a6a5791a8240e5a1e6638ab28dc77Romain Guy    android:layout_width="match_parent"
25980a938c1c9a6a5791a8240e5a1e6638ab28dc77Romain Guy    android:layout_height="match_parent"
260d244193bed0c995e2beaff5e217200457b28b9dJim Miller    android:orientation="vertical"
276b05d58018c2806459c121e507c005639b74aee9Jim Miller    android:rowCount="7"
28b505074e8273887fbcd1e933738a42e770085fb8Jim Miller    android:id="@+id/root"
29b505074e8273887fbcd1e933738a42e770085fb8Jim Miller    android:clipChildren="false">
30af1b980ef172a0af81a47a937a3a566153686f01Jim Miller
310d244193bed0c995e2beaff5e217200457b28b9dJim Miller    <!-- Column 0 -->
320d244193bed0c995e2beaff5e217200457b28b9dJim Miller    <com.android.internal.widget.DigitalClock android:id="@+id/time"
336b05d58018c2806459c121e507c005639b74aee9Jim Miller        android:layout_marginTop="80dip"
3408a975ef86200a73db51bfbcca6bea8ad2a63cbdJim Miller        android:layout_marginBottom="8dip"
35aac0d4ed026d1cfbcf3fa81c6e4eb96f4347ca17Fabrice Di Meglio        android:layout_gravity="end">
360d244193bed0c995e2beaff5e217200457b28b9dJim Miller
370d244193bed0c995e2beaff5e217200457b28b9dJim Miller       <!-- Because we can't have multi-tone fonts, we render two TextViews, one on
380d244193bed0c995e2beaff5e217200457b28b9dJim Miller        top of the other. Hence the redundant layout... -->
390d244193bed0c995e2beaff5e217200457b28b9dJim Miller        <TextView android:id="@+id/timeDisplayBackground"
4024ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller            android:layout_width="wrap_content"
4124ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller            android:layout_height="wrap_content"
42af1b980ef172a0af81a47a937a3a566153686f01Jim Miller            android:singleLine="true"
430d244193bed0c995e2beaff5e217200457b28b9dJim Miller            android:ellipsize="none"
4408a975ef86200a73db51bfbcca6bea8ad2a63cbdJim Miller            android:textSize="@dimen/keyguard_lockscreen_clock_font_size"
4524ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller            android:textAppearance="?android:attr/textAppearanceMedium"
460d244193bed0c995e2beaff5e217200457b28b9dJim Miller            android:layout_marginBottom="6dip"
470d244193bed0c995e2beaff5e217200457b28b9dJim Miller            android:textColor="@color/lockscreen_clock_background"
4824ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller            />
4924ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller
500d244193bed0c995e2beaff5e217200457b28b9dJim Miller        <TextView android:id="@+id/timeDisplayForeground"
517aacc59abea2822c12e3c8ef743df66262b8767bDaniel Sandler            android:layout_width="wrap_content"
527aacc59abea2822c12e3c8ef743df66262b8767bDaniel Sandler            android:layout_height="wrap_content"
530d244193bed0c995e2beaff5e217200457b28b9dJim Miller            android:singleLine="true"
540d244193bed0c995e2beaff5e217200457b28b9dJim Miller            android:ellipsize="none"
5508a975ef86200a73db51bfbcca6bea8ad2a63cbdJim Miller            android:textSize="@dimen/keyguard_lockscreen_clock_font_size"
5624ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller            android:textAppearance="?android:attr/textAppearanceMedium"
570d244193bed0c995e2beaff5e217200457b28b9dJim Miller            android:layout_marginBottom="6dip"
580d244193bed0c995e2beaff5e217200457b28b9dJim Miller            android:textColor="@color/lockscreen_clock_foreground"
59aac0d4ed026d1cfbcf3fa81c6e4eb96f4347ca17Fabrice Di Meglio            android:layout_alignStart="@id/timeDisplayBackground"
600d244193bed0c995e2beaff5e217200457b28b9dJim Miller            android:layout_alignTop="@id/timeDisplayBackground"
6124ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller            />
6224ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller
630d244193bed0c995e2beaff5e217200457b28b9dJim Miller    </com.android.internal.widget.DigitalClock>
640d244193bed0c995e2beaff5e217200457b28b9dJim Miller
650d244193bed0c995e2beaff5e217200457b28b9dJim Miller    <TextView
660d244193bed0c995e2beaff5e217200457b28b9dJim Miller        android:id="@+id/date"
67c61f888298866b2e27099abd86db9026bc40cc08Jim Miller        android:layout_width="0dip"
68c61f888298866b2e27099abd86db9026bc40cc08Jim Miller        android:layout_gravity="fill_horizontal"
69aac0d4ed026d1cfbcf3fa81c6e4eb96f4347ca17Fabrice Di Meglio        android:gravity="end"
700d244193bed0c995e2beaff5e217200457b28b9dJim Miller        android:layout_marginTop="6dip"
717377cd0ab4e4db23d6ef99c2c73e3e1d5c9312faJim Miller        android:singleLine="true"
727377cd0ab4e4db23d6ef99c2c73e3e1d5c9312faJim Miller        android:ellipsize="marquee"
730d244193bed0c995e2beaff5e217200457b28b9dJim Miller        android:textAppearance="?android:attr/textAppearanceMedium"
7408a975ef86200a73db51bfbcca6bea8ad2a63cbdJim Miller        android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
750d244193bed0c995e2beaff5e217200457b28b9dJim Miller        />
760d244193bed0c995e2beaff5e217200457b28b9dJim Miller
770d244193bed0c995e2beaff5e217200457b28b9dJim Miller    <TextView
780d244193bed0c995e2beaff5e217200457b28b9dJim Miller        android:id="@+id/alarm_status"
797377cd0ab4e4db23d6ef99c2c73e3e1d5c9312faJim Miller        android:singleLine="true"
807377cd0ab4e4db23d6ef99c2c73e3e1d5c9312faJim Miller        android:ellipsize="marquee"
810d244193bed0c995e2beaff5e217200457b28b9dJim Miller        android:textAppearance="?android:attr/textAppearanceMedium"
8208a975ef86200a73db51bfbcca6bea8ad2a63cbdJim Miller        android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
830d244193bed0c995e2beaff5e217200457b28b9dJim Miller        android:drawablePadding="4dip"
840d244193bed0c995e2beaff5e217200457b28b9dJim Miller        android:layout_marginTop="4dip"
85aac0d4ed026d1cfbcf3fa81c6e4eb96f4347ca17Fabrice Di Meglio        android:layout_gravity="end"
860d244193bed0c995e2beaff5e217200457b28b9dJim Miller        />
870d244193bed0c995e2beaff5e217200457b28b9dJim Miller
880d244193bed0c995e2beaff5e217200457b28b9dJim Miller    <TextView
890d244193bed0c995e2beaff5e217200457b28b9dJim Miller        android:id="@+id/status1"
90c61f888298866b2e27099abd86db9026bc40cc08Jim Miller        android:layout_width="0dip"
91c61f888298866b2e27099abd86db9026bc40cc08Jim Miller        android:layout_gravity="fill_horizontal"
92aac0d4ed026d1cfbcf3fa81c6e4eb96f4347ca17Fabrice Di Meglio        android:gravity="end"
930d244193bed0c995e2beaff5e217200457b28b9dJim Miller        android:layout_marginTop="4dip"
947377cd0ab4e4db23d6ef99c2c73e3e1d5c9312faJim Miller        android:singleLine="true"
957377cd0ab4e4db23d6ef99c2c73e3e1d5c9312faJim Miller        android:ellipsize="marquee"
960d244193bed0c995e2beaff5e217200457b28b9dJim Miller        android:textAppearance="?android:attr/textAppearanceMedium"
9708a975ef86200a73db51bfbcca6bea8ad2a63cbdJim Miller        android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
980d244193bed0c995e2beaff5e217200457b28b9dJim Miller        android:drawablePadding="4dip"
990d244193bed0c995e2beaff5e217200457b28b9dJim Miller        />
1000d244193bed0c995e2beaff5e217200457b28b9dJim Miller
1016b05d58018c2806459c121e507c005639b74aee9Jim Miller    <Space android:layout_gravity="fill" />
1020d244193bed0c995e2beaff5e217200457b28b9dJim Miller
1030d244193bed0c995e2beaff5e217200457b28b9dJim Miller    <TextView
1046b05d58018c2806459c121e507c005639b74aee9Jim Miller        android:id="@+id/carrier"
105c61f888298866b2e27099abd86db9026bc40cc08Jim Miller        android:layout_width="0dip"
106c61f888298866b2e27099abd86db9026bc40cc08Jim Miller        android:layout_gravity="fill_horizontal"
1077da27adf6cb972a54fe0ee10ba2fa3a2974a2c18Peter Ng        android:layout_marginBottom="12dip"
108aac0d4ed026d1cfbcf3fa81c6e4eb96f4347ca17Fabrice Di Meglio        android:gravity="end"
1097377cd0ab4e4db23d6ef99c2c73e3e1d5c9312faJim Miller        android:singleLine="true"
1107377cd0ab4e4db23d6ef99c2c73e3e1d5c9312faJim Miller        android:ellipsize="marquee"
1110d244193bed0c995e2beaff5e217200457b28b9dJim Miller        android:textAppearance="?android:attr/textAppearanceMedium"
11208a975ef86200a73db51bfbcca6bea8ad2a63cbdJim Miller        android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
1136b05d58018c2806459c121e507c005639b74aee9Jim Miller        android:textColor="?android:attr/textColorSecondary"
1145d1a9840aaf57ae90716f0ac34abdcd09f7f4ed6Philip Milne        />
1150d244193bed0c995e2beaff5e217200457b28b9dJim Miller
1166b05d58018c2806459c121e507c005639b74aee9Jim Miller    <Button
1176b05d58018c2806459c121e507c005639b74aee9Jim Miller        android:id="@+id/emergencyCallButton"
1186b05d58018c2806459c121e507c005639b74aee9Jim Miller        android:layout_width="wrap_content"
1196b05d58018c2806459c121e507c005639b74aee9Jim Miller        android:layout_height="wrap_content"
120aac0d4ed026d1cfbcf3fa81c6e4eb96f4347ca17Fabrice Di Meglio        android:layout_gravity="end"
1216b05d58018c2806459c121e507c005639b74aee9Jim Miller        android:drawableLeft="@*android:drawable/lockscreen_emergency_button"
1226b05d58018c2806459c121e507c005639b74aee9Jim Miller        android:text="@*android:string/lockscreen_emergency_call"
1236b05d58018c2806459c121e507c005639b74aee9Jim Miller        style="?android:attr/buttonBarButtonStyle"
1246b05d58018c2806459c121e507c005639b74aee9Jim Miller        android:drawablePadding="8dip"
1256b05d58018c2806459c121e507c005639b74aee9Jim Miller        android:visibility="gone"
12608a975ef86200a73db51bfbcca6bea8ad2a63cbdJim Miller        />
12724ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller
1280d244193bed0c995e2beaff5e217200457b28b9dJim Miller    <!-- Column 1 -->
1296b05d58018c2806459c121e507c005639b74aee9Jim Miller    <Space android:layout_width="64dip" android:layout_rowSpan="7" />
1300d244193bed0c995e2beaff5e217200457b28b9dJim Miller
1310d244193bed0c995e2beaff5e217200457b28b9dJim Miller    <!-- Column 2 -->
132955a016922ea49f154d190b054a202559b41a4d3Jim Miller    <com.android.internal.widget.multiwaveview.GlowPadView
133b505074e8273887fbcd1e933738a42e770085fb8Jim Miller        android:id="@+id/unlock_widget"
134354619c1cc1b4668c81c5368b2256335cc9e8538Jim Miller        android:layout_width="302dip"
135980a938c1c9a6a5791a8240e5a1e6638ab28dc77Romain Guy        android:layout_height="match_parent"
1366b05d58018c2806459c121e507c005639b74aee9Jim Miller        android:layout_rowSpan="7"
137aac0d4ed026d1cfbcf3fa81c6e4eb96f4347ca17Fabrice Di Meglio        android:gravity="start|center_vertical"
13878bfb9829561876137c62ca1fff13760bfc77472alanv        android:focusable="true"
139b505074e8273887fbcd1e933738a42e770085fb8Jim Miller
140be8d1cf1ac9fc514fb0cc2e8ef4a85beb0197fa0Jim Miller        android:targetDrawables="@array/lockscreen_targets_with_camera"
141f058340b2f1c3d8114c48581680b4294122fe371Svetoslav Ganov        android:targetDescriptions="@array/lockscreen_target_descriptions_with_camera"
14257df88bc94f9aa06450e158b5a59ec29e3fe8874Svetoslav Ganov        android:directionDescriptions="@array/lockscreen_direction_descriptions"
143b505074e8273887fbcd1e933738a42e770085fb8Jim Miller        android:handleDrawable="@drawable/ic_lockscreen_handle"
144955a016922ea49f154d190b054a202559b41a4d3Jim Miller        android:outerRingDrawable="@drawable/ic_lockscreen_outerring"
145955a016922ea49f154d190b054a202559b41a4d3Jim Miller        android:outerRadius="@dimen/glowpadview_target_placement_radius"
146955a016922ea49f154d190b054a202559b41a4d3Jim Miller        android:innerRadius="@dimen/glowpadview_inner_radius"
147955a016922ea49f154d190b054a202559b41a4d3Jim Miller        android:snapMargin="@dimen/glowpadview_snap_margin"
148955a016922ea49f154d190b054a202559b41a4d3Jim Miller        android:feedbackCount="1"
14908a975ef86200a73db51bfbcca6bea8ad2a63cbdJim Miller        android:vibrationDuration="20"
150955a016922ea49f154d190b054a202559b41a4d3Jim Miller        android:glowRadius="@dimen/glowpadview_glow_radius"
151955a016922ea49f154d190b054a202559b41a4d3Jim Miller        android:pointDrawable="@drawable/ic_lockscreen_glowdot"
15224ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller        />
15324ccf3c59077d81b0dd3b314822ff7dab215c165Jim Miller
1546b05d58018c2806459c121e507c005639b74aee9Jim Miller    <!-- Music transport control -->
1556b05d58018c2806459c121e507c005639b74aee9Jim Miller    <include android:id="@+id/transport"
1566b05d58018c2806459c121e507c005639b74aee9Jim Miller        layout="@layout/keyguard_transport_control"
1576b05d58018c2806459c121e507c005639b74aee9Jim Miller        android:layout_row="0"
1586b05d58018c2806459c121e507c005639b74aee9Jim Miller        android:layout_column="0"
1596b05d58018c2806459c121e507c005639b74aee9Jim Miller        android:layout_rowSpan="5"
1606b05d58018c2806459c121e507c005639b74aee9Jim Miller        android:layout_columnSpan="1"
1616b05d58018c2806459c121e507c005639b74aee9Jim Miller        android:layout_gravity="fill"
1621c18828d20807342d37000746b18a3c1696f3b2eJim Miller        android:layout_width="0dip"
1631c18828d20807342d37000746b18a3c1696f3b2eJim Miller        android:layout_height="0dip"
1646b05d58018c2806459c121e507c005639b74aee9Jim Miller        />
1656b05d58018c2806459c121e507c005639b74aee9Jim Miller
1660d244193bed0c995e2beaff5e217200457b28b9dJim Miller</GridLayout>
167