Merge "GLIF theme for settings" into nyc-mr1-dev am: 203fbde
am: e9841ef
* commit 'e9841efb189ce4b12fb464b6b2f8d85dd6bc241c':
GLIF theme for settings
Change-Id: I1169b9b2a8d3ed290720a7a97ed0efb3940a2bee
This commit is contained in:
38
res/drawable/ic_fingerprint_header.xml
Normal file
38
res/drawable/ic_fingerprint_header.xml
Normal file
@@ -0,0 +1,38 @@
|
||||
<!--
|
||||
Copyright (C) 2016 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
|
||||
-->
|
||||
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="32dp"
|
||||
android:height="32dp"
|
||||
android:tint="?android:attr/colorPrimary"
|
||||
android:viewportHeight="32.0"
|
||||
android:viewportWidth="32.0">
|
||||
<path
|
||||
android:fillColor="#ffffff"
|
||||
android:pathData="M23.7,5.9c-0.1,0.0 -0.2,0.0 -0.3,-0.1C21.0,4.5 18.6,3.9 16.0,3.9c-2.5,0.0 -4.6,0.6 -6.9,1.9C8.8,6.0 8.3,5.9 8.1,5.5C7.9,5.2 8.0,4.7 8.4,4.5c2.5,-1.4 4.9,-2.1 7.7,-2.1c2.8,0.0 5.4,0.7 8.0,2.1c0.4,0.2 0.5,0.6 0.3,1.0C24.2,5.7 24.0,5.9 23.7,5.9z" />
|
||||
<path
|
||||
android:fillColor="#ffffff"
|
||||
android:pathData="M5.3,13.2c-0.1,0.0 -0.3,0.0 -0.4,-0.1c-0.3,-0.2 -0.4,-0.7 -0.2,-1.0c1.3,-1.9 2.9,-3.4 4.9,-4.5c4.1,-2.2 9.3,-2.2 13.4,0.0c1.9,1.1 3.6,2.5 4.9,4.4c0.2,0.3 0.1,0.8 -0.2,1.0c-0.3,0.2 -0.8,0.1 -1.0,-0.2c-1.2,-1.7 -2.6,-3.0 -4.3,-4.0c-3.7,-2.0 -8.3,-2.0 -12.0,0.0c-1.7,0.9 -3.2,2.3 -4.3,4.0C5.7,13.1 5.5,13.2 5.3,13.2z" />
|
||||
<path
|
||||
android:fillColor="#ffffff"
|
||||
android:pathData="M13.3,29.6c-0.2,0.0 -0.4,-0.1 -0.5,-0.2c-1.1,-1.2 -1.7,-2.0 -2.6,-3.6c-0.9,-1.7 -1.4,-3.7 -1.4,-5.9c0.0,-4.1 3.3,-7.4 7.4,-7.4c4.1,0.0 7.4,3.3 7.4,7.4c0.0,0.4 -0.3,0.7 -0.7,0.7s-0.7,-0.3 -0.7,-0.7c0.0,-3.3 -2.7,-5.9 -5.9,-5.9c-3.3,0.0 -5.9,2.7 -5.9,5.9c0.0,2.0 0.4,3.8 1.2,5.2c0.8,1.6 1.4,2.2 2.4,3.3c0.3,0.3 0.3,0.8 0.0,1.0C13.7,29.5 13.5,29.6 13.3,29.6z" />
|
||||
<path
|
||||
android:fillColor="#ffffff"
|
||||
android:pathData="M22.6,27.1c-1.6,0.0 -2.9,-0.4 -4.1,-1.2c-1.9,-1.4 -3.1,-3.6 -3.1,-6.0c0.0,-0.4 0.3,-0.7 0.7,-0.7s0.7,0.3 0.7,0.7c0.0,1.9 0.9,3.7 2.5,4.8c0.9,0.6 1.9,1.0 3.2,1.0c0.3,0.0 0.8,0.0 1.3,-0.1c0.4,-0.1 0.8,0.2 0.8,0.6c0.1,0.4 -0.2,0.8 -0.6,0.8C23.4,27.1 22.8,27.1 22.6,27.1z" />
|
||||
<path
|
||||
android:fillColor="#ffffff"
|
||||
android:pathData="M20.0,29.9c-0.1,0.0 -0.1,0.0 -0.2,0.0c-2.1,-0.6 -3.4,-1.4 -4.8,-2.9c-1.8,-1.9 -2.8,-4.4 -2.8,-7.1c0.0,-2.2 1.8,-4.1 4.1,-4.1c2.2,0.0 4.1,1.8 4.1,4.1c0.0,1.4 1.2,2.6 2.6,2.6c1.4,0.0 2.6,-1.2 2.6,-2.6c0.0,-5.1 -4.2,-9.3 -9.3,-9.3c-3.6,0.0 -6.9,2.1 -8.4,5.4C7.3,17.1 7.0,18.4 7.0,19.8c0.0,1.1 0.1,2.7 0.9,4.9c0.1,0.4 -0.1,0.8 -0.4,0.9c-0.4,0.1 -0.8,-0.1 -0.9,-0.4c-0.6,-1.8 -0.9,-3.6 -0.9,-5.4c0.0,-1.6 0.3,-3.1 0.9,-4.4c1.7,-3.8 5.6,-6.3 9.8,-6.3c5.9,0.0 10.7,4.8 10.7,10.7c0.0,2.2 -1.8,4.1 -4.1,4.1s-4.0,-1.8 -4.0,-4.1c0.0,-1.4 -1.2,-2.6 -2.6,-2.6c-1.4,0.0 -2.6,1.2 -2.6,2.6c0.0,2.3 0.9,4.5 2.4,6.1c1.2,1.3 2.4,2.0 4.2,2.5c0.4,0.1 0.6,0.5 0.5,0.9C20.6,29.7 20.3,29.9 20.0,29.9z" />
|
||||
</vector>
|
24
res/drawable/ic_lock.xml
Normal file
24
res/drawable/ic_lock.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<!--
|
||||
Copyright (C) 2016 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
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="32dp"
|
||||
android:height="32dp"
|
||||
android:viewportHeight="24.0"
|
||||
android:viewportWidth="24.0">
|
||||
<path
|
||||
android:fillColor="?android:attr/colorPrimary"
|
||||
android:pathData="M18,8h-1L17,6c0,-2.76 -2.24,-5 -5,-5S7,3.24 7,6v2L6,8c-1.1,0 -2,0.9 -2,2v10c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2L20,10c0,-1.1 -0.9,-2 -2,-2zM12,17c-1.1,0 -2,-0.9 -2,-2s0.9,-2 2,-2 2,0.9 2,2 -0.9,2 -2,2zM15.1,8L8.9,8L8.9,6c0,-1.71 1.39,-3.1 3.1,-3.1 1.71,0 3.1,1.39 3.1,3.1v2z" />
|
||||
</vector>
|
@@ -15,7 +15,7 @@
|
||||
~ limitations under the License
|
||||
-->
|
||||
|
||||
<com.android.setupwizardlib.SetupWizardLayout
|
||||
<com.android.setupwizardlib.GlifLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/setup_wizard_layout"
|
||||
android:layout_width="match_parent"
|
||||
@@ -79,4 +79,4 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</com.android.setupwizardlib.SetupWizardLayout>
|
||||
</com.android.setupwizardlib.GlifLayout>
|
||||
|
@@ -15,7 +15,7 @@
|
||||
~ limitations under the License
|
||||
-->
|
||||
|
||||
<com.android.setupwizardlib.SetupWizardLayout
|
||||
<com.android.setupwizardlib.GlifLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/setup_wizard_layout"
|
||||
android:layout_width="match_parent"
|
||||
@@ -70,4 +70,4 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</com.android.setupwizardlib.SetupWizardLayout>
|
||||
</com.android.setupwizardlib.GlifLayout>
|
||||
|
@@ -15,7 +15,7 @@
|
||||
~ limitations under the License
|
||||
-->
|
||||
|
||||
<com.android.setupwizardlib.SetupWizardLayout
|
||||
<com.android.setupwizardlib.GlifLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/setup_wizard_layout"
|
||||
android:layout_width="match_parent"
|
||||
@@ -100,4 +100,4 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</com.android.setupwizardlib.SetupWizardLayout>
|
||||
</com.android.setupwizardlib.GlifLayout>
|
||||
|
@@ -15,15 +15,13 @@
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<com.android.setupwizardlib.SetupWizardLayout
|
||||
<com.android.setupwizardlib.GlifLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:settings="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
settings:suwBackgroundTile="@drawable/setup_illustration_tile"
|
||||
settings:suwHeaderText="@string/wifi_setup_wizard_title"
|
||||
settings:suwIllustrationHorizontalTile="@drawable/setup_illustration_horizontal_tile"
|
||||
settings:suwIllustrationImage="@drawable/setup_illustration_lock_screen">
|
||||
android:icon="@drawable/ic_lock"
|
||||
settings:suwHeaderText="@string/lock_settings_picker_title">
|
||||
|
||||
<com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient
|
||||
android:id="@+id/topLayout"
|
||||
@@ -49,40 +47,30 @@
|
||||
android:gravity="start|bottom"
|
||||
android:textSize="18sp" />
|
||||
|
||||
<Button android:id="@+id/retryButton"
|
||||
style="@android:style/Widget.Material.Button.Borderless.Colored"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="start"
|
||||
android:layout_marginStart="-12dp"
|
||||
android:minWidth="0dp"
|
||||
android:text="@string/lockpattern_retry_button_text" />
|
||||
|
||||
<!-- footer can show a message, or confirm / restart buttons -->
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dip"
|
||||
android:layout_weight="1.0"
|
||||
android:visibility="gone">
|
||||
android:layout_weight="1.0">
|
||||
|
||||
<!-- confirm / restart buttons -->
|
||||
<LinearLayout android:id="@+id/buttonContainer"
|
||||
style="@style/SecurityPreferenceButtonContainer"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:gravity="end"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<!-- left / top button: skip, or re-try -->
|
||||
<Button android:id="@+id/footerLeftButton"
|
||||
style="@style/SecurityPreferenceButton"
|
||||
android:layout_width="match_parent"
|
||||
style="@style/SetupWizardButton.Negative"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/lockpattern_restart_button_text" />
|
||||
|
||||
<!-- right / bottom button: confirm or ok -->
|
||||
<Button android:id="@+id/footerRightButton"
|
||||
style="@style/SecurityPreferenceButton"
|
||||
android:layout_width="match_parent"
|
||||
style="@style/SetupWizardButton.Positive"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/lockpattern_confirm_button_text" />
|
||||
|
||||
@@ -110,4 +98,4 @@
|
||||
|
||||
</com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
|
||||
|
||||
</com.android.setupwizardlib.SetupWizardLayout>
|
||||
</com.android.setupwizardlib.GlifLayout>
|
||||
|
@@ -15,7 +15,7 @@
|
||||
~ limitations under the License
|
||||
-->
|
||||
|
||||
<com.android.setupwizardlib.SetupWizardLayout
|
||||
<com.android.setupwizardlib.GlifLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/setup_wizard_layout"
|
||||
android:layout_width="match_parent"
|
||||
@@ -70,4 +70,4 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</com.android.setupwizardlib.SetupWizardLayout>
|
||||
</com.android.setupwizardlib.GlifLayout>
|
||||
|
@@ -15,7 +15,7 @@
|
||||
~ limitations under the License
|
||||
-->
|
||||
|
||||
<com.android.setupwizardlib.SetupWizardLayout
|
||||
<com.android.setupwizardlib.GlifLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/setup_wizard_layout"
|
||||
android:layout_width="match_parent"
|
||||
@@ -70,6 +70,15 @@
|
||||
android:accessibilityLiveRegion="polite"
|
||||
android:visibility="invisible"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/skip_button"
|
||||
style="@style/SetupWizardButton.Negative"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="end"
|
||||
android:text="@string/skip_label"
|
||||
android:visibility="gone" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</com.android.setupwizardlib.SetupWizardLayout>
|
||||
</com.android.setupwizardlib.GlifLayout>
|
||||
|
@@ -15,7 +15,7 @@
|
||||
~ limitations under the License
|
||||
-->
|
||||
|
||||
<com.android.setupwizardlib.SetupWizardLayout
|
||||
<com.android.setupwizardlib.GlifLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/setup_wizard_layout"
|
||||
android:layout_width="match_parent"
|
||||
@@ -63,9 +63,8 @@
|
||||
android:layout_marginBottom="4dp"
|
||||
android:layout_marginEnd="-12dp"
|
||||
android:layout_gravity="end"
|
||||
android:gravity="end|center_vertical"
|
||||
android:text="@string/fingerprint_enroll_button_next" />
|
||||
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
||||
</com.android.setupwizardlib.SetupWizardLayout>
|
||||
</com.android.setupwizardlib.GlifLayout>
|
||||
|
@@ -15,7 +15,7 @@
|
||||
~ limitations under the License
|
||||
-->
|
||||
|
||||
<com.android.setupwizardlib.SetupWizardLayout
|
||||
<com.android.setupwizardlib.GlifLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/setup_wizard_layout"
|
||||
android:layout_width="match_parent"
|
||||
@@ -91,11 +91,10 @@
|
||||
android:id="@+id/next_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="end|center_vertical"
|
||||
android:text="@string/security_settings_fingerprint_enroll_done" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</com.android.setupwizardlib.SetupWizardLayout>
|
||||
</com.android.setupwizardlib.GlifLayout>
|
||||
|
@@ -15,10 +15,10 @@
|
||||
limitations under the License
|
||||
-->
|
||||
|
||||
<com.android.setupwizardlib.SetupWizardRecyclerLayout
|
||||
<com.android.setupwizardlib.GlifRecyclerLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
style="?attr/fingerprint_layout_theme"
|
||||
android:id="@+id/setup_wizard_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:entries="@xml/fingerprint_enroll_introduction_items"
|
||||
style="?attr/fingerprint_layout_theme" />
|
||||
android:entries="@xml/fingerprint_enroll_introduction_items" />
|
||||
|
@@ -15,15 +15,13 @@
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<com.android.setupwizardlib.SetupWizardLayout
|
||||
<com.android.setupwizardlib.GlifLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:settings="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
settings:suwBackgroundTile="@drawable/setup_illustration_tile"
|
||||
settings:suwHeaderText="@string/wifi_setup_wizard_title"
|
||||
settings:suwIllustrationHorizontalTile="@drawable/setup_illustration_horizontal_tile"
|
||||
settings:suwIllustrationImage="@drawable/setup_illustration_lock_screen">
|
||||
android:icon="@drawable/ic_lock"
|
||||
settings:suwHeaderText="@string/lockpassword_choose_your_password_header">
|
||||
|
||||
<LinearLayout
|
||||
style="@style/SuwContentFrame"
|
||||
@@ -45,45 +43,42 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginStart="30dip"
|
||||
android:layout_marginEnd="30dip"
|
||||
android:gravity="center"
|
||||
android:inputType="textPassword"
|
||||
android:imeOptions="actionNext|flagNoExtractUi"
|
||||
android:textSize="24sp"
|
||||
style="@style/TextAppearance.PasswordEntry"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false"
|
||||
android:gravity="end"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<!-- left : cancel -->
|
||||
<Button android:id="@+id/cancel_button"
|
||||
style="@style/SetupWizardButton.Negative"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/lockpassword_cancel_label" />
|
||||
|
||||
<!-- right : continue -->
|
||||
<Button android:id="@+id/next_button"
|
||||
style="@style/SetupWizardButton.Positive"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/lockpassword_continue_label" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Spacer between password entry and keyboard -->
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dip"
|
||||
android:layout_weight="1"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="gone"
|
||||
style="@style/SecurityPreferenceButtonContainer">
|
||||
|
||||
<!-- left : cancel -->
|
||||
<Button android:id="@+id/cancel_button"
|
||||
android:layout_width="0dip"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/lockpassword_cancel_label"
|
||||
style="@style/SecurityPreferenceButton"/>
|
||||
|
||||
<!-- right : continue -->
|
||||
<Button android:id="@+id/next_button"
|
||||
android:layout_width="0dip"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/lockpassword_continue_label"
|
||||
style="@style/SecurityPreferenceButton"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Alphanumeric keyboard -->
|
||||
<com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard"
|
||||
android:layout_width="match_parent"
|
||||
@@ -94,4 +89,4 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</com.android.setupwizardlib.SetupWizardLayout>
|
||||
</com.android.setupwizardlib.GlifLayout>
|
||||
|
@@ -16,15 +16,13 @@
|
||||
-->
|
||||
|
||||
<!-- Used in phone portrait and tablet, as referenced in alias.xml. -->
|
||||
<com.android.setupwizardlib.SetupWizardLayout
|
||||
<com.android.setupwizardlib.GlifLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:settings="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
settings:suwBackgroundTile="@drawable/setup_illustration_tile"
|
||||
settings:suwHeaderText="@string/wifi_setup_wizard_title"
|
||||
settings:suwIllustrationHorizontalTile="@drawable/setup_illustration_horizontal_tile"
|
||||
settings:suwIllustrationImage="@drawable/setup_illustration_lock_screen">
|
||||
android:icon="@drawable/ic_lock"
|
||||
settings:suwHeaderText="@string/wifi_setup_wizard_title">
|
||||
|
||||
<com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient
|
||||
android:id="@+id/topLayout"
|
||||
@@ -49,19 +47,35 @@
|
||||
android:minHeight="50dip"
|
||||
android:textSize="18sp"/>
|
||||
|
||||
<Button android:id="@+id/retryButton"
|
||||
style="@android:style/Widget.Material.Button.Borderless.Colored"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:text="@string/lockpattern_retry_button_text"/>
|
||||
|
||||
<com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dip"
|
||||
android:layout_weight="4"
|
||||
android:background="@color/lock_pattern_background"/>
|
||||
|
||||
<!-- Buttons are hidden during setup, and use the buttons in setup navigation bar instead -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="end"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<!-- left : cancel, or re-try -->
|
||||
<Button android:id="@+id/footerLeftButton"
|
||||
style="@style/SetupWizardButton.Negative"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/lockpattern_tutorial_cancel_label" />
|
||||
|
||||
<!-- right : confirm or ok -->
|
||||
<Button android:id="@+id/footerRightButton"
|
||||
style="@style/SetupWizardButton.Positive"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/lockpattern_tutorial_continue_label" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView android:id="@+id/footerText"
|
||||
@@ -72,32 +86,6 @@
|
||||
android:textSize="14sp"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<!-- Buttons are hidden during setup, and use the buttons in setup navigation bar instead -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="gone"
|
||||
style="@style/SecurityPreferenceButtonContainer">
|
||||
|
||||
<!-- left : cancel, or re-try -->
|
||||
<Button android:id="@+id/footerLeftButton"
|
||||
android:layout_width="0dip"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/lockpattern_tutorial_cancel_label"
|
||||
style="@style/SecurityPreferenceButton"/>
|
||||
|
||||
<!-- right : confirm or ok -->
|
||||
<Button android:id="@+id/footerRightButton"
|
||||
android:layout_width="0dip"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/lockpattern_tutorial_continue_label"
|
||||
style="@style/SecurityPreferenceButton"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
|
||||
|
||||
</com.android.setupwizardlib.SetupWizardLayout>
|
||||
</com.android.setupwizardlib.GlifLayout>
|
||||
|
@@ -15,7 +15,7 @@
|
||||
limitations under the License
|
||||
-->
|
||||
|
||||
<com.android.setupwizardlib.SetupWizardLayout
|
||||
<com.android.setupwizardlib.GlifLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/setup_wizard_layout"
|
||||
android:layout_width="match_parent"
|
||||
@@ -68,4 +68,4 @@
|
||||
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
||||
</com.android.setupwizardlib.SetupWizardLayout>
|
||||
</com.android.setupwizardlib.GlifLayout>
|
||||
|
@@ -15,11 +15,8 @@
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<com.android.setupwizardlib.SetupWizardPreferenceLayout
|
||||
<com.android.setupwizardlib.GlifPreferenceLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:settings="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@android:id/list_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
settings:suwBackgroundTile="@drawable/setup_illustration_tile"
|
||||
settings:suwIllustrationHorizontalTile="@drawable/setup_illustration_horizontal_tile" />
|
||||
android:layout_height="match_parent" />
|
||||
|
@@ -15,31 +15,25 @@
|
||||
limitations under the License
|
||||
-->
|
||||
|
||||
<com.android.setupwizardlib.SetupWizardLayout
|
||||
<com.android.setupwizardlib.GlifLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:settings="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/setup_wizard_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
settings:suwBackgroundTile="@drawable/setup_illustration_tile"
|
||||
settings:suwHeaderText="@string/lock_screen_notifications_interstitial_title"
|
||||
settings:suwIllustrationHorizontalTile="@drawable/setup_illustration_horizontal_tile"
|
||||
settings:suwIllustrationImage="@drawable/setup_illustration_lock_screen">
|
||||
android:icon="@drawable/ic_lock"
|
||||
settings:suwHeaderText="@string/lock_screen_notifications_interstitial_title">
|
||||
|
||||
<LinearLayout
|
||||
style="@style/SuwContentFrame"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:paddingStart="?attr/side_margin"
|
||||
android:paddingEnd="?attr/side_margin">
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
style="@style/SuwDescription"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="?android:attr/listPreferredItemPaddingStart"
|
||||
android:layout_marginEnd="?android:attr/listPreferredItemPaddingEnd"
|
||||
android:text="@string/lock_screen_notifications_interstitial_message" />
|
||||
|
||||
<RadioGroup
|
||||
@@ -47,8 +41,6 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/redaction_vertical_margins"
|
||||
android:layout_marginStart="?android:attr/listPreferredItemPaddingStart"
|
||||
android:layout_marginEnd="?android:attr/listPreferredItemPaddingEnd"
|
||||
android:checkedButton="@+id/redact_sensitive">
|
||||
|
||||
<com.android.settings.RestrictedRadioButton
|
||||
@@ -81,8 +73,17 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/redaction_vertical_margins"
|
||||
android:text="@string/lockscreen_remote_input" />
|
||||
|
||||
</RadioGroup>
|
||||
|
||||
<Button
|
||||
android:id="@+id/redaction_next_button"
|
||||
style="@style/SetupWizardButton.Positive"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="end"
|
||||
android:text="@string/next_label" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</com.android.setupwizardlib.SetupWizardLayout>
|
||||
</com.android.setupwizardlib.GlifLayout>
|
||||
|
@@ -276,6 +276,10 @@
|
||||
<item name="android:singleLine">true</item>
|
||||
</style>
|
||||
|
||||
<style name="SetupWizardButton.Negative" parent="@android:style/Widget.Material.Button.Borderless" />
|
||||
|
||||
<style name="SetupWizardButton.Positive" parent="@android:style/Widget.Material.Button.Colored" />
|
||||
|
||||
<style name="vpn_label">
|
||||
<item name="android:layout_width">match_parent</item>
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
@@ -341,15 +345,7 @@
|
||||
</style>
|
||||
|
||||
<style name="FingerprintLayoutTheme">
|
||||
<item name="suwBackground">@drawable/fp_enrollment_header</item>
|
||||
<item name="suwIllustrationAspectRatio">@dimen/fingerprint_illustration_aspect_ratio</item>
|
||||
<item name="suwDecorPaddingTop">@dimen/fingerprint_decor_padding_top</item>
|
||||
</style>
|
||||
|
||||
<style name="SetupWizardFingerprintLayoutTheme">
|
||||
<item name="suwBackgroundTile">@drawable/setup_illustration_tile</item>
|
||||
<item name="suwIllustration">@drawable/setup_illustration_lock_screen</item>
|
||||
<item name="suwIllustrationHorizontalTile">@drawable/setup_illustration_horizontal_tile</item>
|
||||
<item name="android:icon">@drawable/ic_fingerprint_header</item>
|
||||
</style>
|
||||
|
||||
<style name="TextAppearance.ConfirmDeviceCredentialsErrorText"
|
||||
|
@@ -32,15 +32,13 @@
|
||||
<item name="android:windowBackground">@null</item>
|
||||
</style>
|
||||
|
||||
<style name="SetupWizardTheme" parent="SuwThemeMaterial">
|
||||
<style name="SetupWizardTheme" parent="SuwThemeGlif">
|
||||
<!-- For all Alert Dialogs -->
|
||||
<item name="android:alertDialogTheme">@style/ThemeOverlay.AlertDialog</item>
|
||||
<item name="android:colorPrimary">@color/suw_color_accent_dark</item>
|
||||
<item name="android:listPreferredItemPaddingEnd">@dimen/suw_layout_margin_sides</item>
|
||||
<item name="android:listPreferredItemPaddingStart">@dimen/suw_layout_margin_sides</item>
|
||||
<item name="android:windowBackground">?android:attr/colorBackground</item>
|
||||
<item name="@*android:preferencePanelStyle">@*android:style/PreferencePanel.Dialog</item>
|
||||
<item name="fingerprint_layout_theme">@style/SetupWizardFingerprintLayoutTheme</item>
|
||||
<item name="fingerprint_layout_theme">@style/FingerprintLayoutTheme</item>
|
||||
<item name="fingerprint_progress_bar_size">@dimen/setup_fingerprint_progress_bar_size</item>
|
||||
<item name="fingerprint_ring_radius">@dimen/setup_fingerprint_ring_radius</item>
|
||||
<item name="ic_menu_add">@drawable/ic_menu_add_dark</item>
|
||||
@@ -59,15 +57,13 @@
|
||||
<item name="@*android:errorColor">@color/setup_lock_pattern_view_error_color_dark</item>
|
||||
</style>
|
||||
|
||||
<style name="SetupWizardTheme.Light" parent="SuwThemeMaterial.Light">
|
||||
<style name="SetupWizardTheme.Light" parent="SuwThemeGlif.Light">
|
||||
<!-- For all Alert Dialogs -->
|
||||
<item name="android:alertDialogTheme">@style/ThemeOverlay.AlertDialog</item>
|
||||
<item name="android:colorPrimary">@color/suw_color_accent_light</item>
|
||||
<item name="android:listPreferredItemPaddingEnd">@dimen/suw_layout_margin_sides</item>
|
||||
<item name="android:listPreferredItemPaddingStart">@dimen/suw_layout_margin_sides</item>
|
||||
<item name="android:windowBackground">?android:attr/colorBackground</item>
|
||||
<item name="@*android:preferencePanelStyle">@*android:style/PreferencePanel.Dialog</item>
|
||||
<item name="fingerprint_layout_theme">@style/SetupWizardFingerprintLayoutTheme</item>
|
||||
<item name="fingerprint_layout_theme">@style/FingerprintLayoutTheme</item>
|
||||
<item name="fingerprint_progress_bar_size">@dimen/setup_fingerprint_progress_bar_size</item>
|
||||
<item name="fingerprint_ring_radius">@dimen/setup_fingerprint_ring_radius</item>
|
||||
<item name="ic_menu_add">@drawable/ic_menu_add_light</item>
|
||||
@@ -78,7 +74,7 @@
|
||||
<item name="wifi_signal_color">@color/setup_wizard_wifi_color_light</item>
|
||||
<item name="wifi_signal">@drawable/wifi_signal</item>
|
||||
<item name="preferenceBackgroundColor">?android:attr/colorBackground</item>
|
||||
<item name="preferenceTheme">@style/PreferenceTheme.SetupWizard</item>
|
||||
<item name="preferenceTheme">@style/PreferenceTheme.SetupWizard.Light</item>
|
||||
|
||||
<!-- LockPatternView colors -->
|
||||
<item name="@*android:regularColor">@color/setup_lock_pattern_view_regular_color_light</item>
|
||||
@@ -108,9 +104,11 @@
|
||||
<item name="apnPreferenceStyle">@style/ApnPreference</item>
|
||||
</style>
|
||||
|
||||
<style name="PreferenceTheme.SetupWizard">
|
||||
<item name="android:listPreferredItemPaddingEnd">@dimen/suw_layout_margin_sides</item>
|
||||
<item name="android:listPreferredItemPaddingStart">@dimen/suw_layout_margin_sides</item>
|
||||
<style name="PreferenceTheme.SetupWizard" parent="SetupWizardTheme">
|
||||
<item name="preferenceFragmentStyle">@style/SetupWizardPreferenceFragmentStyle</item>
|
||||
</style>
|
||||
|
||||
<style name="PreferenceTheme.SetupWizard.Light" parent="SetupWizardTheme.Light">
|
||||
<item name="preferenceFragmentStyle">@style/SetupWizardPreferenceFragmentStyle</item>
|
||||
</style>
|
||||
|
||||
|
Reference in New Issue
Block a user