Fix LockScreen Settings on phones.
Change-Id: Ibbb0bcb4f34ba442d9ec678277718d3141f9d807
This commit is contained in:
@@ -39,7 +39,7 @@
|
|||||||
android:layout_marginBottom="10dip"
|
android:layout_marginBottom="10dip"
|
||||||
android:gravity="left"
|
android:gravity="left"
|
||||||
android:ellipsize="marquee"
|
android:ellipsize="marquee"
|
||||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- Password entry field -->
|
<!-- Password entry field -->
|
||||||
@@ -74,6 +74,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="#00000000"
|
android:background="#00000000"
|
||||||
android:keyBackground="@*android:drawable/btn_keyboard_key_fulltrans"
|
android:keyBackground="@*android:drawable/btn_keyboard_key_fulltrans"
|
||||||
|
android:visibility="gone"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
|
93
res/layout-land/choose_lock_pattern_tutorial.xml
Normal file
93
res/layout-land/choose_lock_pattern_tutorial.xml
Normal file
@@ -0,0 +1,93 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Copyright (C) 2008 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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:id="@+id/topLayout"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:layout_width="0dip"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_weight="1">
|
||||||
|
|
||||||
|
<!-- left side: lock pattern -->
|
||||||
|
<com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
|
||||||
|
android:layout_width="300dip"
|
||||||
|
android:layout_height="300dip"
|
||||||
|
android:layout_gravity="center_horizontal"
|
||||||
|
aspect="square"/>
|
||||||
|
|
||||||
|
<!-- right side: instructions and buttons -->
|
||||||
|
<!-- header message -->
|
||||||
|
<ScrollView
|
||||||
|
android:layout_width="300dip"
|
||||||
|
android:layout_height="180dip"
|
||||||
|
android:layout_alignParentTop="true"
|
||||||
|
android:layout_toRightOf="@id/lockPattern"
|
||||||
|
android:layout_marginLeft="25dip">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:padding="5dip">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center_horizontal"
|
||||||
|
android:text="@string/lock_title"
|
||||||
|
android:paddingBottom="10dip"
|
||||||
|
style="?android:attr/textAppearanceLarge"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
|
android:textSize="18sp"
|
||||||
|
android:text="@string/lock_intro_message"
|
||||||
|
/>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</ScrollView>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
style="@style/SecurityPreferenceButtonContainer"
|
||||||
|
android:layout_alignParentRight="true"
|
||||||
|
android:layout_alignParentBottom="true"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<!-- left / top button: skip, or re-try -->
|
||||||
|
<Button android:id="@+id/skip_button"
|
||||||
|
style="@style/SecurityPreferenceButton"
|
||||||
|
android:text="@string/lockpattern_tutorial_cancel_label"/>
|
||||||
|
|
||||||
|
<!-- right / bottom button: confirm or ok -->
|
||||||
|
<Button android:id="@+id/next_button"
|
||||||
|
style="@style/SecurityPreferenceButton"
|
||||||
|
android:text="@string/lockpattern_tutorial_continue_label"/>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
</com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
|
||||||
|
|
@@ -16,12 +16,93 @@
|
|||||||
** limitations under the License.
|
** limitations under the License.
|
||||||
*/
|
*/
|
||||||
-->
|
-->
|
||||||
|
<!-- This is basically the same layout as choose_lock_password. -->
|
||||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="fill_parent"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:background="@android:color/background_dark"
|
||||||
|
android:gravity="center_horizontal">
|
||||||
|
|
||||||
<!-- This is basically the same layout now, but will likely change -->
|
<LinearLayout
|
||||||
<merge xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<include
|
|
||||||
layout="@layout/choose_lock_password"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<!-- "Enter PIN(Password) to unlock" -->
|
||||||
|
<TextView android:id="@+id/headerText"
|
||||||
|
android:layout_width="0dip"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:layout_marginRight="6dip"
|
||||||
|
android:layout_marginLeft="6dip"
|
||||||
|
android:layout_marginTop="10dip"
|
||||||
|
android:layout_marginBottom="10dip"
|
||||||
|
android:gravity="left"
|
||||||
|
android:ellipsize="marquee"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
/>
|
/>
|
||||||
</merge>
|
|
||||||
|
<!-- Password entry field -->
|
||||||
|
<EditText android:id="@+id/password_entry"
|
||||||
|
android:layout_width="0dip"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:inputType="textPassword"
|
||||||
|
android:gravity="center"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:textSize="24sp"
|
||||||
|
android:layout_marginTop="5dip"
|
||||||
|
android:layout_marginBottom="5dip"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||||
|
android:background="@drawable/password_field_default"
|
||||||
|
android:textColor="#ffffffff"
|
||||||
|
/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<!-- Spacer between password entry and keyboard -->
|
||||||
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="0dip"
|
||||||
|
android:layout_weight="1" />
|
||||||
|
|
||||||
|
<!-- Alphanumeric keyboard -->
|
||||||
|
<com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard"
|
||||||
|
android:layout_alignParentBottom="true"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="#00000000"
|
||||||
|
android:keyBackground="@*android:drawable/btn_keyboard_key_fulltrans"
|
||||||
|
android:visibility="gone"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:background="@android:drawable/bottom_bar"
|
||||||
|
android:visibility="gone">
|
||||||
|
|
||||||
|
<Button android:id="@+id/cancel_button"
|
||||||
|
android:layout_width="150dip"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_margin="5dip"
|
||||||
|
android:layout_alignParentLeft="true"
|
||||||
|
android:text="@string/lockpassword_cancel_label"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<Button android:id="@+id/next_button"
|
||||||
|
android:layout_width="150dip"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_margin="5dip"
|
||||||
|
android:layout_alignParentRight="true"
|
||||||
|
android:drawableRight="@drawable/ic_btn_next"
|
||||||
|
android:drawablePadding="10dip"
|
||||||
|
android:text="@string/lockpassword_continue_label"
|
||||||
|
/>
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
@@ -29,14 +29,13 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:lines="2"
|
android:lines="2"
|
||||||
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
||||||
|
|
||||||
<!-- spacer above text entry field -->
|
<!-- spacer above text entry field -->
|
||||||
<View
|
<View
|
||||||
android:id="@+id/spacerBottom"
|
android:id="@+id/spacerBottom"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="1dip"
|
android:layout_height="1dip"
|
||||||
android:layout_marginTop="6dip"
|
|
||||||
android:background="@android:drawable/divider_horizontal_dark"
|
android:background="@android:drawable/divider_horizontal_dark"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@@ -49,8 +48,7 @@
|
|||||||
android:inputType="textPassword"
|
android:inputType="textPassword"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:textSize="32sp"
|
android:textSize="24sp"
|
||||||
android:layout_marginTop="15dip"
|
|
||||||
android:layout_marginLeft="30dip"
|
android:layout_marginLeft="30dip"
|
||||||
android:layout_marginRight="30dip"
|
android:layout_marginRight="30dip"
|
||||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||||
@@ -64,39 +62,30 @@
|
|||||||
android:layout_height="0dip"
|
android:layout_height="0dip"
|
||||||
android:layout_weight="1" />
|
android:layout_weight="1" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
style="@style/SecurityPreferenceButtonContainer"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<!-- left : cancel -->
|
||||||
|
<Button android:id="@+id/cancel_button"
|
||||||
|
style="@style/SecurityPreferenceButton"
|
||||||
|
android:text="@string/lockpassword_cancel_label"/>
|
||||||
|
|
||||||
|
<!-- right : continue -->
|
||||||
|
<Button android:id="@+id/next_button"
|
||||||
|
style="@style/SecurityPreferenceButton"
|
||||||
|
android:text="@string/lockpassword_continue_label"/>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<!-- Alphanumeric keyboard -->
|
<!-- Alphanumeric keyboard -->
|
||||||
<com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard"
|
<com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard"
|
||||||
android:layout_alignParentBottom="true"
|
android:layout_alignParentBottom="true"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="#00000000"
|
android:background="#00000000"
|
||||||
android:layout_marginBottom="30dip"
|
|
||||||
android:keyBackground="@*android:drawable/btn_keyboard_key_fulltrans"
|
android:keyBackground="@*android:drawable/btn_keyboard_key_fulltrans"
|
||||||
|
android:visibility="gone"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<RelativeLayout
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:background="@android:drawable/bottom_bar">
|
|
||||||
|
|
||||||
<Button android:id="@+id/cancel_button"
|
|
||||||
android:layout_width="150dip"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_margin="5dip"
|
|
||||||
android:layout_alignParentLeft="true"
|
|
||||||
android:text="@string/lockpassword_cancel_label"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<Button android:id="@+id/next_button"
|
|
||||||
android:layout_width="150dip"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_margin="5dip"
|
|
||||||
android:layout_alignParentRight="true"
|
|
||||||
android:drawableRight="@drawable/ic_btn_next"
|
|
||||||
android:drawablePadding="10dip"
|
|
||||||
android:text="@string/lockpassword_continue_label"
|
|
||||||
/>
|
|
||||||
|
|
||||||
</RelativeLayout>
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
@@ -58,33 +58,19 @@
|
|||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
style="@style/SecurityPreferenceButtonContainer"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<LinearLayout style="@android:style/ButtonBar"
|
<!-- left : cancel, or re-try -->
|
||||||
android:orientation="horizontal"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content">
|
|
||||||
|
|
||||||
<Button android:id="@+id/footerLeftButton"
|
<Button android:id="@+id/footerLeftButton"
|
||||||
android:layout_height="wrap_content"
|
style="@style/SecurityPreferenceButton"
|
||||||
android:layout_width="140dip"
|
android:text="@string/lockpattern_tutorial_cancel_label"/>
|
||||||
android:ellipsize="marquee"
|
|
||||||
android:singleLine="true"
|
|
||||||
android:text="@string/lockpattern_restart_button_text"/>
|
|
||||||
|
|
||||||
<View
|
|
||||||
android:visibility="invisible"
|
|
||||||
android:layout_height="0dip"
|
|
||||||
android:layout_width="1dip"
|
|
||||||
android:layout_weight="1" />
|
|
||||||
|
|
||||||
|
<!-- right : confirm or ok -->
|
||||||
<Button android:id="@+id/footerRightButton"
|
<Button android:id="@+id/footerRightButton"
|
||||||
android:layout_height="wrap_content"
|
style="@style/SecurityPreferenceButton"
|
||||||
android:layout_width="140dip"
|
android:text="@string/lockpattern_tutorial_continue_label"/>
|
||||||
android:ellipsize="marquee"
|
|
||||||
android:singleLine="true"
|
|
||||||
android:drawableRight="@drawable/ic_btn_next"
|
|
||||||
android:drawablePadding="3dip"
|
|
||||||
android:text="@string/lockpattern_confirm_button_text"/>
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!-- Copyright (C) 2008 The Android Open Source Project
|
<!-- Copyright (C) 2011 The Android Open Source Project
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
@@ -17,8 +17,11 @@
|
|||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_width="match_parent">
|
android:layout_width="match_parent"
|
||||||
|
android:gravity="center_horizontal">
|
||||||
|
|
||||||
|
<!-- top: instructions and buttons -->
|
||||||
|
<!-- header message -->
|
||||||
<ScrollView
|
<ScrollView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dip"
|
android:layout_height="0dip"
|
||||||
@@ -36,7 +39,6 @@
|
|||||||
android:gravity="center_horizontal"
|
android:gravity="center_horizontal"
|
||||||
android:text="@string/lock_title"
|
android:text="@string/lock_title"
|
||||||
android:paddingBottom="10dip"
|
android:paddingBottom="10dip"
|
||||||
android:layout_marginTop="3dip"
|
|
||||||
style="?android:attr/textAppearanceLarge"
|
style="?android:attr/textAppearanceLarge"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@@ -44,7 +46,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
android:layout_marginTop="10dip"
|
android:textSize="18sp"
|
||||||
android:text="@string/lock_intro_message"
|
android:text="@string/lock_intro_message"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@@ -52,35 +54,30 @@
|
|||||||
|
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
|
||||||
<LinearLayout style="@android:style/ButtonBar"
|
<!-- bottom: lock pattern -->
|
||||||
android:orientation="horizontal"
|
<com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="300dip"
|
||||||
android:layout_height="wrap_content">
|
android:layout_height="300dip"
|
||||||
|
aspect="square"/>
|
||||||
|
|
||||||
<Button android:id="@+id/skip_button"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_width="140dip"
|
|
||||||
android:ellipsize="marquee"
|
|
||||||
android:singleLine="true"
|
|
||||||
android:text="@string/skip_button_label"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<!-- Placeholder to get blank space between the two buttons -->
|
|
||||||
<View
|
<View
|
||||||
android:visibility="invisible"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dip"
|
android:layout_height="0dip"
|
||||||
android:layout_width="1dip"
|
|
||||||
android:layout_weight="1"/>
|
android:layout_weight="1"/>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
style="@style/SecurityPreferenceButtonContainer"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<!-- left / top button: skip, or re-try -->
|
||||||
|
<Button android:id="@+id/skip_button"
|
||||||
|
style="@style/SecurityPreferenceButton"
|
||||||
|
android:text="@string/lockpattern_tutorial_cancel_label"/>
|
||||||
|
|
||||||
|
<!-- right / bottom button: confirm or ok -->
|
||||||
<Button android:id="@+id/next_button"
|
<Button android:id="@+id/next_button"
|
||||||
android:layout_height="wrap_content"
|
style="@style/SecurityPreferenceButton"
|
||||||
android:layout_width="140dip"
|
android:text="@string/lockpattern_tutorial_continue_label"/>
|
||||||
android:drawableRight="@drawable/ic_btn_next"
|
|
||||||
android:drawablePadding="3dip"
|
|
||||||
android:ellipsize="marquee"
|
|
||||||
android:singleLine="true"
|
|
||||||
android:text="@string/next_button_label"
|
|
||||||
/>
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
@@ -17,11 +17,86 @@
|
|||||||
*/
|
*/
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- This is basically the same layout now, but will likely change -->
|
<!-- This is the same layout as choose_lock_password -->
|
||||||
<merge xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<include
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
layout="@layout/choose_lock_password"
|
android:layout_width="fill_parent"
|
||||||
android:layout_width="match_parent"
|
android:layout_height="fill_parent"
|
||||||
android:layout_height="match_parent"
|
android:orientation="vertical"
|
||||||
|
android:gravity="center_horizontal">
|
||||||
|
|
||||||
|
<!-- header text ('Enter Pin') -->
|
||||||
|
<TextView android:id="@+id/headerText"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center"
|
||||||
|
android:lines="2"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
||||||
|
|
||||||
|
<!-- spacer above text entry field -->
|
||||||
|
<View
|
||||||
|
android:id="@+id/spacerBottom"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="1dip"
|
||||||
|
android:layout_marginTop="6dip"
|
||||||
|
android:background="@android:drawable/divider_horizontal_dark"
|
||||||
/>
|
/>
|
||||||
</merge>
|
|
||||||
|
<!-- Password entry field -->
|
||||||
|
<EditText android:id="@+id/password_entry"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:singleLine="true"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:inputType="textPassword"
|
||||||
|
android:gravity="center"
|
||||||
|
android:layout_gravity="center"
|
||||||
|
android:textSize="24sp"
|
||||||
|
android:layout_marginLeft="30dip"
|
||||||
|
android:layout_marginRight="30dip"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||||
|
android:background="@drawable/password_field_default"
|
||||||
|
android:textColor="#ffffffff"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<!-- Spacer between password entry and keyboard -->
|
||||||
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="0dip"
|
||||||
|
android:layout_weight="1" />
|
||||||
|
|
||||||
|
<!-- Alphanumeric keyboard -->
|
||||||
|
<com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard"
|
||||||
|
android:layout_alignParentBottom="true"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:background="#00000000"
|
||||||
|
android:keyBackground="@*android:drawable/btn_keyboard_key_fulltrans"
|
||||||
|
android:visibility="gone"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="0dip"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
style="@style/SecurityPreferenceButtonContainer"
|
||||||
|
android:layout_alignParentRight="true"
|
||||||
|
android:layout_alignParentBottom="true"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<!-- left / top button: skip, or re-try -->
|
||||||
|
<Button android:id="@+id/cancel_button"
|
||||||
|
style="@style/SecurityPreferenceButton"
|
||||||
|
android:text="@string/lockpattern_tutorial_cancel_label"/>
|
||||||
|
|
||||||
|
<!-- right / bottom button: confirm or ok -->
|
||||||
|
<Button android:id="@+id/next_button"
|
||||||
|
style="@style/SecurityPreferenceButton"
|
||||||
|
android:text="@string/lockpattern_tutorial_continue_label"/>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user