diff options
| author | Maurice Lam <yukl@google.com> | 2015-04-18 20:11:59 -0700 |
|---|---|---|
| committer | Maurice Lam <yukl@google.com> | 2015-04-21 10:19:35 -0700 |
| commit | 83301b5256e3fd930d620e8e9ad5f43cd388ba09 (patch) | |
| tree | 71e2c358fabf8aee6166177d0dcb34efc5215609 /res/layout/setup_choose_lock_password.xml | |
| parent | c3385dc11bacdcc4d8e7d614fd7133bb9e609cdb (diff) | |
| download | packages_apps_Settings-83301b5256e3fd930d620e8e9ad5f43cd388ba09.zip packages_apps_Settings-83301b5256e3fd930d620e8e9ad5f43cd388ba09.tar.gz packages_apps_Settings-83301b5256e3fd930d620e8e9ad5f43cd388ba09.tar.bz2 | |
[Setup] Use SetupWizardLayout
Use SetupWizardLayout for the screens that show in Settings to get
better visual consistency and new features like showing a progress
bar in list view.
Bug: 19594252
Change-Id: I53ab17a4c2d922a362e3762f1cdccb512f7d8f6e
Diffstat (limited to 'res/layout/setup_choose_lock_password.xml')
| -rw-r--r-- | res/layout/setup_choose_lock_password.xml | 118 |
1 files changed, 65 insertions, 53 deletions
diff --git a/res/layout/setup_choose_lock_password.xml b/res/layout/setup_choose_lock_password.xml index 59fa523..3ec5241 100644 --- a/res/layout/setup_choose_lock_password.xml +++ b/res/layout/setup_choose_lock_password.xml @@ -15,70 +15,82 @@ limitations under the License. --> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" +<com.android.setupwizardlib.SetupWizardLayout + 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" - android:gravity="center_horizontal" - android:orientation="vertical"> + 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"> - <!-- header text ('Enter Pin') --> - <TextView android:id="@+id/headerText" + <LinearLayout android:layout_width="match_parent" - android:layout_height="wrap_content" - android:gravity="center" - android:lines="2" - android:textAppearance="?android:attr/textAppearanceMedium"/> + android:layout_height="match_parent" + android:gravity="center_horizontal" + android:orientation="vertical"> - <!-- Password entry field --> - <EditText android:id="@+id/password_entry" - 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"/> + <!-- header text ('Enter Pin') --> + <TextView android:id="@+id/headerText" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center" + android:lines="2" + android:textAppearance="?android:attr/textAppearanceMedium"/> - <!-- Spacer between password entry and keyboard --> - <View - android:layout_width="match_parent" - android:layout_height="0dip" - android:layout_weight="1"/> + <!-- Password entry field --> + <EditText android:id="@+id/password_entry" + 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:orientation="horizontal" - android:visibility="gone" - style="@style/SecurityPreferenceButtonContainer"> + <!-- Spacer between password entry and keyboard --> + <View + android:layout_width="match_parent" + android:layout_height="0dip" + android:layout_weight="1"/> - <!-- left : cancel --> - <Button android:id="@+id/cancel_button" - android:layout_width="0dip" + <LinearLayout + android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_weight="1" - android:text="@string/lockpassword_cancel_label" - style="@style/SecurityPreferenceButton"/> + 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"/> - <!-- right : continue --> - <Button android:id="@+id/next_button" - android:layout_width="0dip" + </LinearLayout> + + <!-- Alphanumeric keyboard --> + <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard" + android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_weight="1" - android:text="@string/lockpassword_continue_label" - style="@style/SecurityPreferenceButton"/> + android:background="#00000000" + android:keyBackground="@*android:drawable/btn_keyboard_key_fulltrans" + android:visibility="gone"/> </LinearLayout> - <!-- Alphanumeric keyboard --> - <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:background="#00000000" - android:keyBackground="@*android:drawable/btn_keyboard_key_fulltrans" - android:visibility="gone"/> - -</LinearLayout> +</com.android.setupwizardlib.SetupWizardLayout> |
