| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| ** |
| ** Copyright 2009, The Android Open Source Project |
| ** |
| ** Licensed under the Apache License, Version 2.0 (the "License") |
| ** you may not use this file except in compliance with the License. |
| ** You may obtain a copy of the License at |
| ** |
| ** http://www.apache.org/licenses/LICENSE-2.0 |
| ** |
| ** Unless required by applicable law or agreed to in writing, software |
| ** distributed under the License is distributed on an "AS IS" BASIS, |
| ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ** See the License for the specific language governing permissions and |
| ** limitations under the License. |
| */ |
| --> |
| |
| <!-- This is the general lock screen which shows information about the |
| state of the device, as well as instructions on how to get past it |
| depending on the state of the device.--> |
| <GridLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:orientation="vertical" |
| android:rowCount="11" |
| android:id="@+id/root" |
| android:clipChildren="false"> |
| |
| <!-- Column 0 --> |
| <Space android:height="20dip"/> |
| |
| <com.android.internal.widget.DigitalClock android:id="@+id/time" |
| android:layout_marginTop="16dip" |
| android:layout_marginBottom="8dip" |
| android:layout_gravity="right"> |
| |
| <!-- Because we can't have multi-tone fonts, we render two TextViews, one on |
| top of the other. Hence the redundant layout... --> |
| <TextView android:id="@+id/timeDisplayBackground" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:singleLine="true" |
| android:ellipsize="none" |
| android:textSize="@dimen/keyguard_lockscreen_clock_font_size" |
| android:textAppearance="?android:attr/textAppearanceMedium" |
| android:layout_marginBottom="6dip" |
| android:textColor="@color/lockscreen_clock_background" |
| /> |
| |
| <TextView android:id="@+id/timeDisplayForeground" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:singleLine="true" |
| android:ellipsize="none" |
| android:textSize="@dimen/keyguard_lockscreen_clock_font_size" |
| android:textAppearance="?android:attr/textAppearanceMedium" |
| android:layout_marginBottom="6dip" |
| android:textColor="@color/lockscreen_clock_foreground" |
| android:layout_alignLeft="@id/timeDisplayBackground" |
| android:layout_alignTop="@id/timeDisplayBackground" |
| /> |
| |
| </com.android.internal.widget.DigitalClock> |
| |
| <TextView |
| android:id="@+id/date" |
| android:layout_below="@id/time" |
| android:layout_marginTop="6dip" |
| android:singleLine="true" |
| android:ellipsize="marquee" |
| android:textAppearance="?android:attr/textAppearanceMedium" |
| android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" |
| android:layout_gravity="right" |
| /> |
| |
| <TextView |
| android:id="@+id/alarm_status" |
| android:singleLine="true" |
| android:ellipsize="marquee" |
| android:textAppearance="?android:attr/textAppearanceMedium" |
| android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" |
| android:drawablePadding="4dip" |
| android:layout_marginTop="4dip" |
| android:layout_gravity="right" |
| /> |
| |
| <TextView |
| android:id="@+id/status1" |
| android:layout_marginTop="4dip" |
| android:singleLine="true" |
| android:ellipsize="marquee" |
| android:textAppearance="?android:attr/textAppearanceMedium" |
| android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" |
| android:drawablePadding="4dip" |
| android:layout_gravity="right" |
| /> |
| |
| <TextView |
| android:id="@+id/status2" |
| android:layout_marginTop="4dip" |
| android:singleLine="true" |
| android:ellipsize="marquee" |
| android:textAppearance="?android:attr/textAppearanceMedium" |
| android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" |
| android:drawablePadding="4dip" |
| android:layout_gravity="right" |
| /> |
| |
| <TextView |
| android:id="@+id/screenLocked" |
| android:singleLine="true" |
| android:ellipsize="marquee" |
| android:textAppearance="?android:attr/textAppearanceMedium" |
| android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" |
| android:gravity="center" |
| android:layout_marginTop="4dip" |
| android:drawablePadding="4dip" |
| android:layout_gravity="right" |
| /> |
| |
| <Space android:height="20dip"/> |
| |
| <TextView |
| android:id="@+id/carrier" |
| android:singleLine="true" |
| android:ellipsize="marquee" |
| android:layout_gravity="right" |
| android:textAppearance="?android:attr/textAppearanceMedium" |
| android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" |
| android:textColor="?android:attr/textColorSecondary" |
| /> |
| |
| <!-- "emergency calls only" shown when sim is missing or PUKd --> |
| <TextView |
| android:id="@+id/emergencyCallText" |
| android:layout_marginTop="20dip" |
| android:layout_gravity="right" |
| android:singleLine="true" |
| android:ellipsize="marquee" |
| android:text="@string/emergency_calls_only" |
| android:textAppearance="?android:attr/textAppearanceMedium" |
| android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" |
| android:textColor="?android:attr/textColorSecondary" |
| /> |
| |
| <Button |
| android:id="@+id/emergencyCallButton" |
| android:layout_gravity="right" |
| android:drawableLeft="@drawable/lockscreen_emergency_button" |
| android:text="@string/lockscreen_emergency_call" |
| style="?android:attr/buttonBarButtonStyle" |
| android:drawablePadding="8dip" |
| android:visibility="visible" |
| /> |
| |
| <!-- Column 1 --> |
| <Space android:layout_widthSpec="canStretch" android:layout_rowSpan="11" /> |
| |
| <!-- Column 2 - password entry field and PIN keyboard --> |
| <LinearLayout |
| android:layout_height="wrap_content" |
| android:layout_width="wrap_content" |
| android:orientation="vertical" |
| android:layout_gravity="center|fill" |
| android:layout_rowSpan="11"> |
| |
| <EditText android:id="@+id/passwordEntry" |
| android:layout_height="wrap_content" |
| android:layout_width="wrap_content" |
| android:singleLine="true" |
| android:textStyle="normal" |
| android:inputType="textPassword" |
| android:layout_gravity="center" |
| android:textSize="24sp" |
| android:minEms="8" |
| android:textAppearance="?android:attr/textAppearanceMedium" |
| android:background="@drawable/lockscreen_password_field_dark" |
| android:textColor="?android:attr/textColorPrimary" |
| /> |
| |
| <!-- Numeric keyboard --> |
| <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard" |
| android:layout_width="250dip" |
| android:layout_height="100dip" |
| android:layout_gravity="center" |
| android:background="#40000000" |
| android:layout_marginTop="5dip" |
| android:keyBackground="@drawable/btn_keyboard_key_fulltrans" |
| android:visibility="visible" |
| /> |
| |
| </LinearLayout> |
| |
| </GridLayout> |