Use frameworks/opt/setupwizard/library/ for consistent behavior and styling on phones and tablets. Implement every step of wizard flow and connect them together, even though some steps are currently non-functional. All strings to match UX spec, with some adjustment. Wizards inherit from helper base class. New interstitials before unmounting or formatting private storage to confirm user knows consequences. Bug: 19993667 Change-Id: I2c774e1718d513805ee8aecfc96d066d4730450c
74 lines
3.5 KiB
XML
74 lines
3.5 KiB
XML
<?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:app="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/setup_wizard_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
app:suwBackgroundTile="@drawable/illustration_tile"
|
|
app:suwIllustrationHorizontalTile="@drawable/illustration_horizontal"
|
|
app:suwIllustrationImage="@drawable/illustration_generic">
|
|
|
|
<!-- android:layout="@layout/suw_template_short" -->
|
|
|
|
<LinearLayout
|
|
style="@style/SuwContentFrame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<RadioButton
|
|
android:id="@+id/storage_wizard_init_external_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/suw_description_margin_top"
|
|
android:lineSpacingExtra="@dimen/suw_description_line_spacing_extra"
|
|
android:textAppearance="@android:style/TextAppearance.Material.Subhead"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:text="@string/storage_wizard_init_external_title" />
|
|
<TextView
|
|
android:id="@+id/storage_wizard_init_external_summary"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:lineSpacingExtra="@dimen/suw_description_line_spacing_extra"
|
|
android:textAppearance="@android:style/TextAppearance.Material.Body1"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
android:text="@string/storage_wizard_init_external_summary" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/storage_wizard_init_internal_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/suw_description_margin_top"
|
|
android:lineSpacingExtra="@dimen/suw_description_line_spacing_extra"
|
|
android:textAppearance="@android:style/TextAppearance.Material.Subhead"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:text="@string/storage_wizard_init_internal_title" />
|
|
<TextView
|
|
android:id="@+id/storage_wizard_init_internal_summary"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:lineSpacingExtra="@dimen/suw_description_line_spacing_extra"
|
|
android:textAppearance="@android:style/TextAppearance.Material.Body1"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
android:text="@string/storage_wizard_init_internal_summary" />
|
|
|
|
</LinearLayout>
|
|
|
|
</com.android.setupwizardlib.SetupWizardLayout>
|