diff options
author | Jim Miller <jaggies@google.com> | 2012-10-11 20:40:01 -0700 |
---|---|---|
committer | Jim Miller <jaggies@google.com> | 2012-10-12 03:53:57 -0700 |
commit | 0ff7f010f8bfd011f0915031b02739ae3bee401e (patch) | |
tree | 29cec183265fdd9835741fe1b1aa072923b01779 /core/res/res/layout-port | |
parent | 4cce397c0dab44cf7b1b657d0e5410b5970eef55 (diff) | |
download | frameworks_base-0ff7f010f8bfd011f0915031b02739ae3bee401e.tar.gz frameworks_base-0ff7f010f8bfd011f0915031b02739ae3bee401e.tar.bz2 frameworks_base-0ff7f010f8bfd011f0915031b02739ae3bee401e.zip |
Change keyguard to use single-stage unlock.
Change-Id: Ica175a90ef4400941c7c4f05a494003b85d5e88c
Diffstat (limited to 'core/res/res/layout-port')
-rw-r--r-- | core/res/res/layout-port/keyguard_host_view.xml | 13 | ||||
-rw-r--r-- | core/res/res/layout-port/keyguard_status_area.xml | 90 |
2 files changed, 97 insertions, 6 deletions
diff --git a/core/res/res/layout-port/keyguard_host_view.xml b/core/res/res/layout-port/keyguard_host_view.xml index 58e108cffaf..3ce9365af09 100644 --- a/core/res/res/layout-port/keyguard_host_view.xml +++ b/core/res/res/layout-port/keyguard_host_view.xml @@ -27,21 +27,22 @@ android:gravity="center_horizontal" android:orientation="vertical"> + <include layout="@layout/keyguard_widget_region" + android:layout_width="match_parent" + android:layout_height="0dip" + android:layout_weight="27" /> + <com.android.internal.policy.impl.keyguard.KeyguardSecurityViewFlipper android:id="@+id/view_flipper" - android:layout_height="match_parent" + android:layout_height="0dp" android:clipChildren="false" android:clipToPadding="false" + android:layout_weight="73" android:paddingLeft="@dimen/keyguard_security_view_margin" android:paddingTop="@dimen/keyguard_security_view_margin" android:paddingRight="@dimen/keyguard_security_view_margin" android:paddingBottom="@dimen/keyguard_security_view_margin" android:gravity="center"> - - <!-- SelectorView is always used, so add it here. The rest are loaded dynamically --> - <include layout="@layout/keyguard_selector_view"/> - </com.android.internal.policy.impl.keyguard.KeyguardSecurityViewFlipper> - </com.android.internal.policy.impl.keyguard.KeyguardHostView> diff --git a/core/res/res/layout-port/keyguard_status_area.xml b/core/res/res/layout-port/keyguard_status_area.xml new file mode 100644 index 00000000000..00aac7b3abc --- /dev/null +++ b/core/res/res/layout-port/keyguard_status_area.xml @@ -0,0 +1,90 @@ +<?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 a view that shows general status information in Keyguard. --> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/keyguard_status_area" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="right" + android:orientation="vertical"> + + <LinearLayout + android:orientation="horizontal" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="0dp" + android:layout_gravity="right"> + <TextView + android:id="@+id/date" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginEnd="@dimen/kg_status_line_font_right_margin" + android:singleLine="true" + android:ellipsize="marquee" + android:textAppearance="?android:attr/textAppearanceMedium" + android:textSize="@dimen/kg_status_date_font_size" + /> + + <TextView + android:id="@+id/alarm_status" + android:layout_marginEnd="@dimen/kg_status_line_font_right_margin" + android:singleLine="true" + android:ellipsize="marquee" + android:textAppearance="?android:attr/textAppearance" + android:textSize="@dimen/kg_status_line_font_size" + android:drawablePadding="4dip" + /> + </LinearLayout> + + <TextView + android:id="@+id/owner_info" + android:layout_gravity="right" + android:layout_marginTop="4dp" + android:layout_marginEnd="@dimen/kg_status_line_font_right_margin" + android:singleLine="true" + android:ellipsize="marquee" + android:textAppearance="?android:attr/textAppearance" + android:textSize="@dimen/kg_status_line_font_size" + /> + + <TextView + android:id="@+id/status1" + android:layout_gravity="right" + android:layout_marginTop="4dp" + android:layout_marginEnd="@dimen/kg_status_line_font_right_margin" + android:singleLine="true" + android:ellipsize="marquee" + android:textAppearance="?android:attr/textAppearance" + android:textSize="@dimen/kg_status_line_font_size" + /> + + <TextView + android:id="@+id/status_security_message" + android:layout_gravity="right" + android:layout_marginTop="4dp" + android:layout_marginEnd="@dimen/kg_status_line_font_right_margin" + android:singleLine="true" + android:ellipsize="marquee" + android:textAppearance="?android:attr/textAppearance" + android:textSize="@dimen/kg_status_line_font_size" + /> + +</LinearLayout>
\ No newline at end of file |