Merge "Final touches to material theme for phones" into lmp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
eb0628bb02
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
**
|
||||
** Copyright 2011, The Android Open Source Project
|
||||
** Copyright 2014, 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.
|
||||
@@ -20,29 +20,36 @@
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
android:orientation="vertical">
|
||||
|
||||
<include layout="@layout/crypt_keeper_status" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_marginStart="8dip"
|
||||
android:layout_marginEnd="8dip"
|
||||
android:orientation="horizontal"
|
||||
>
|
||||
<include layout="@layout/crypt_keeper_password_field" />
|
||||
android:layout_weight="1"
|
||||
android:layout_marginStart="@dimen/crypt_keeper_edit_text_margin"
|
||||
android:layout_marginEnd="@dimen/crypt_keeper_edit_text_margin"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:background="@color/crypt_keeper_password_background"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
<include layout="@layout/crypt_keeper_password_field" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Emergency call button.
|
||||
Text is set by CryptKeeper.updateEmergencyCallButtonState() -->
|
||||
<Button android:id="@+id/emergencyCallButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginTop="16dip"
|
||||
style="?android:attr/borderlessButtonStyle"
|
||||
android:textSize="14sp"
|
||||
android:drawablePadding="6dip"
|
||||
/>
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="@dimen/crypt_keeper_emergency_call_space_above"
|
||||
style="?android:attr/borderlessButtonStyle" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
**
|
||||
** Copyright 2011, The Android Open Source Project
|
||||
** Copyright 2014, 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.
|
||||
@@ -20,16 +20,13 @@
|
||||
<!-- Contents of the password entry field for CryptKeeper. Comes with an IME
|
||||
switcher, if necessary. Assumed to be in a horizontal LinearLayout. -->
|
||||
<merge xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<EditText android:id="@+id/passwordEntry"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="0dip"
|
||||
android:layout_weight="1"
|
||||
android:singleLine="true"
|
||||
android:inputType="textPassword"
|
||||
android:imeOptions="flagForceAscii|actionDone"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:gravity="center_horizontal"
|
||||
/>
|
||||
style="@style/TextAppearance.CryptKeeper_PasswordEntry" />
|
||||
|
||||
<ImageView android:id="@+id/switch_ime_button"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -37,9 +34,9 @@
|
||||
android:src="@drawable/ic_lockscreen_ime"
|
||||
android:clickable="true"
|
||||
android:contentDescription="@string/crypt_keeper_switch_input_method"
|
||||
android:padding="8dip"
|
||||
android:padding="@dimen/crypt_keeper_edit_text_ime_padding"
|
||||
android:layout_gravity="center"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:visibility="gone"
|
||||
/>
|
||||
android:visibility="gone" />
|
||||
|
||||
</merge>
|
||||
|
||||
@@ -20,18 +20,26 @@
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
android:orientation="vertical">
|
||||
|
||||
<include layout="@layout/crypt_keeper_status" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_marginStart="8dip"
|
||||
android:layout_marginEnd="8dip"
|
||||
android:orientation="horizontal"
|
||||
>
|
||||
<include layout="@layout/crypt_keeper_pattern_field" />
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_marginStart="@dimen/crypt_keeper_edit_text_margin"
|
||||
android:layout_marginEnd="@dimen/crypt_keeper_edit_text_margin"
|
||||
android:orientation="horizontal" >
|
||||
<include layout="@layout/crypt_keeper_pattern_field" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Emergency call button.
|
||||
@@ -40,9 +48,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginTop="16dip"
|
||||
style="?android:attr/borderlessButtonStyle"
|
||||
android:drawablePadding="6dip"
|
||||
/>
|
||||
android:layout_marginTop="@dimen/crypt_keeper_emergency_call_space_above"
|
||||
style="?android:attr/borderlessButtonStyle" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -20,11 +20,11 @@
|
||||
<!-- Contents of the password entry field for CryptKeeper. Comes with an IME
|
||||
switcher, if necessary. Assumed to be in a horizontal LinearLayout. -->
|
||||
<merge xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/lock_pattern_background"
|
||||
/>
|
||||
android:background="@color/lock_pattern_background" />
|
||||
|
||||
<ImageView android:id="@+id/switch_ime_button"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -32,9 +32,9 @@
|
||||
android:src="@drawable/ic_lockscreen_ime"
|
||||
android:clickable="true"
|
||||
android:contentDescription="@string/crypt_keeper_switch_input_method"
|
||||
android:padding="8dip"
|
||||
android:padding="@dimen/crypt_keeper_edit_text_ime_padding"
|
||||
android:layout_gravity="center"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:visibility="gone"
|
||||
/>
|
||||
android:visibility="gone" />
|
||||
|
||||
</merge>
|
||||
|
||||
@@ -20,29 +20,36 @@
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
>
|
||||
android:orientation="vertical">
|
||||
|
||||
<include layout="@layout/crypt_keeper_status" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_marginStart="8dip"
|
||||
android:layout_marginEnd="8dip"
|
||||
android:orientation="horizontal"
|
||||
>
|
||||
<include layout="@layout/crypt_keeper_pin_field" />
|
||||
android:layout_weight="1"
|
||||
android:layout_marginStart="@dimen/crypt_keeper_edit_text_margin"
|
||||
android:layout_marginEnd="@dimen/crypt_keeper_edit_text_margin"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:background="@color/crypt_keeper_password_background"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
<include layout="@layout/crypt_keeper_pin_field" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Emergency call button.
|
||||
Text and icon are set by CryptKeeper.updateEmergencyCallButtonState() -->
|
||||
Text is set by CryptKeeper.updateEmergencyCallButtonState() -->
|
||||
<Button android:id="@+id/emergencyCallButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginTop="16dip"
|
||||
style="?android:attr/borderlessButtonStyle"
|
||||
android:drawablePadding="6dip"
|
||||
/>
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:layout_marginTop="@dimen/crypt_keeper_emergency_call_space_above"
|
||||
style="?android:attr/borderlessButtonStyle" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@@ -20,16 +20,13 @@
|
||||
<!-- Contents of the password entry field for CryptKeeper. Comes with an IME
|
||||
switcher, if necessary. Assumed to be in a horizontal LinearLayout. -->
|
||||
<merge xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<EditText android:id="@+id/passwordEntry"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="0dip"
|
||||
android:layout_weight="1"
|
||||
android:singleLine="true"
|
||||
android:inputType="numberPassword"
|
||||
android:imeOptions="flagForceAscii|actionDone"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:gravity="center_horizontal"
|
||||
/>
|
||||
style="@style/TextAppearance.CryptKeeper_PasswordEntry" />
|
||||
|
||||
<ImageView android:id="@+id/switch_ime_button"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -37,9 +34,9 @@
|
||||
android:src="@drawable/ic_lockscreen_ime"
|
||||
android:clickable="true"
|
||||
android:contentDescription="@string/crypt_keeper_switch_input_method"
|
||||
android:padding="8dip"
|
||||
android:padding="@dimen/crypt_keeper_edit_text_ime_padding"
|
||||
android:layout_gravity="center"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:visibility="gone"
|
||||
/>
|
||||
android:visibility="gone" />
|
||||
|
||||
</merge>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
**
|
||||
** Copyright 2011, The Android Open Source Project
|
||||
** Copyright 2014, 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.
|
||||
@@ -23,8 +23,8 @@
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
>
|
||||
android:layout_gravity="center_horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/status"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -33,11 +33,10 @@
|
||||
android:layout_marginStart="8dip"
|
||||
android:layout_marginEnd="8dip"
|
||||
android:textSize="18sp"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:text="@string/enter_password"
|
||||
android:drawableLeft="@*android:drawable/ic_lock_idle_lock"
|
||||
android:layout_gravity="center_horizontal"
|
||||
/>
|
||||
android:layout_gravity="center_horizontal" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/owner_info"
|
||||
android:layout_width="match_parent"
|
||||
@@ -49,6 +48,6 @@
|
||||
android:ellipsize="marquee"
|
||||
android:marqueeRepeatLimit ="marquee_forever"
|
||||
android:textSize="16sp"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
/>
|
||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
Reference in New Issue
Block a user