summaryrefslogtreecommitdiffstats
path: root/res/layout/setup_encryption_interstitial.xml
diff options
context:
space:
mode:
authorMaurice Lam <yukl@google.com>2015-07-20 16:08:38 -0700
committerMaurice Lam <yukl@google.com>2015-07-20 21:06:21 -0700
commit7e831030201fcac9ca0acc9684497dc44cea7023 (patch)
tree080bca918e469ccbdf701615c64f94dc73efe776 /res/layout/setup_encryption_interstitial.xml
parentd85fafce30f6fb71ea9de9de3c6d8aafc99dba33 (diff)
downloadpackages_apps_Settings-7e831030201fcac9ca0acc9684497dc44cea7023.zip
packages_apps_Settings-7e831030201fcac9ca0acc9684497dc44cea7023.tar.gz
packages_apps_Settings-7e831030201fcac9ca0acc9684497dc44cea7023.tar.bz2
[ScreenLock] Style encryption interstitial in SUW
When running in setup wizard, style the encryption interstitial using styles from Setup Wizard library, to be consistent with the rest of the setup flow. Bug: 22587892 Change-Id: I3787643139ec4189f16e0046875fe3a688c8060b
Diffstat (limited to 'res/layout/setup_encryption_interstitial.xml')
-rw-r--r--res/layout/setup_encryption_interstitial.xml63
1 files changed, 63 insertions, 0 deletions
diff --git a/res/layout/setup_encryption_interstitial.xml b/res/layout/setup_encryption_interstitial.xml
new file mode 100644
index 0000000..8a36e30
--- /dev/null
+++ b/res/layout/setup_encryption_interstitial.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2015 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.setupwizardlib.SetupWizardLayout
+ 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/encryption_interstitial_header"
+ settings:suwIllustrationHorizontalTile="@drawable/setup_illustration_horizontal_tile"
+ settings:suwIllustrationImage="@drawable/setup_illustration_lock_screen">
+
+ <LinearLayout
+ style="@style/SuwContentFrame"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical">
+
+ <TextView
+ android:id="@+id/encryption_message"
+ style="@style/SuwDescription"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" />
+
+ <RadioGroup
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="16dp"
+ android:checkedButton="@+id/encrypt_require_password">
+
+ <RadioButton
+ android:id="@+id/encrypt_require_password"
+ style="@style/SuwRadioButton"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" />
+
+ <RadioButton
+ android:id="@+id/encrypt_dont_require_password"
+ style="@style/SuwRadioButton"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" />
+
+ </RadioGroup>
+
+ </LinearLayout>
+
+</com.android.setupwizardlib.SetupWizardLayout>