Home | History | Annotate | Download | only in layout-land
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3     Copyright (C) 2015 The Android Open Source Project
      4 
      5     Licensed under the Apache License, Version 2.0 (the "License")
      6     you may not use this file except in compliance with the License.
      7     You may obtain a copy of the License at
      8 
      9         http://www.apache.org/licenses/LICENSE-2.0
     10 
     11     Unless required by applicable law or agreed to in writing, software
     12     distributed under the License is distributed on an "AS IS" BASIS,
     13     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14     See the License for the specific language governing permissions and
     15     limitations under the License.
     16 -->
     17 
     18 <com.android.setupwizardlib.SetupWizardLayout
     19     xmlns:android="http://schemas.android.com/apk/res/android"
     20     xmlns:settings="http://schemas.android.com/apk/res-auto"
     21     android:layout_width="match_parent"
     22     android:layout_height="match_parent"
     23     settings:suwBackgroundTile="@drawable/setup_illustration_tile"
     24     settings:suwHeaderText="@string/wifi_setup_wizard_title"
     25     settings:suwIllustrationHorizontalTile="@drawable/setup_illustration_horizontal_tile"
     26     settings:suwIllustrationImage="@drawable/setup_illustration_lock_screen">
     27 
     28     <com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient
     29         android:id="@+id/topLayout"
     30         style="@style/SuwContentFrame"
     31         android:clipChildren="false"
     32         android:clipToPadding="false"
     33         android:orientation="horizontal"
     34         android:layout_width="match_parent"
     35         android:layout_height="match_parent">
     36 
     37         <!-- left side: instructions and messages -->
     38         <LinearLayout
     39             android:layout_width="0dip"
     40             android:layout_height="match_parent"
     41             android:layout_weight="1.0"
     42             android:orientation="vertical">
     43 
     44             <!-- header message -->
     45             <TextView android:id="@+id/headerText"
     46                 android:layout_width="match_parent"
     47                 android:layout_height="wrap_content"
     48                 android:layout_marginTop="16dp"
     49                 android:gravity="start|bottom"
     50                 android:textSize="18sp" />
     51 
     52             <Button android:id="@+id/retryButton"
     53                 style="@android:style/Widget.Material.Button.Borderless.Colored"
     54                 android:layout_width="wrap_content"
     55                 android:layout_height="wrap_content"
     56                 android:layout_gravity="start"
     57                 android:layout_marginStart="-12dp"
     58                 android:minWidth="0dp"
     59                 android:text="@string/lockpattern_retry_button_text" />
     60 
     61             <!-- footer can show a message, or confirm / restart buttons -->
     62             <RelativeLayout
     63                 android:layout_width="match_parent"
     64                 android:layout_height="0dip"
     65                 android:layout_weight="1.0"
     66                 android:visibility="gone">
     67 
     68                 <!-- confirm / restart buttons -->
     69                 <LinearLayout android:id="@+id/buttonContainer"
     70                     style="@style/SecurityPreferenceButtonContainer"
     71                     android:layout_centerHorizontal="true"
     72                     android:layout_alignParentBottom="true"
     73                     android:orientation="horizontal">
     74 
     75                     <!-- left / top button: skip, or re-try -->
     76                     <Button android:id="@+id/footerLeftButton"
     77                         style="@style/SecurityPreferenceButton"
     78                         android:layout_width="match_parent"
     79                         android:layout_height="wrap_content"
     80                         android:text="@string/lockpattern_restart_button_text" />
     81 
     82                     <!-- right / bottom button: confirm or ok -->
     83                     <Button android:id="@+id/footerRightButton"
     84                         style="@style/SecurityPreferenceButton"
     85                         android:layout_width="match_parent"
     86                         android:layout_height="wrap_content"
     87                         android:text="@string/lockpattern_confirm_button_text" />
     88 
     89                 </LinearLayout>
     90 
     91                 <!-- message above buttons -->
     92                 <TextView android:id="@+id/footerText"
     93                     android:layout_width="wrap_content"
     94                     android:layout_height="wrap_content"
     95                     android:layout_above="@+id/buttonContainer"
     96                     android:layout_centerHorizontal="true"
     97                     android:layout_marginBottom="4dip"
     98                     android:textSize="14sp"
     99                     android:visibility="gone" />
    100 
    101             </RelativeLayout>
    102 
    103         </LinearLayout>
    104 
    105         <!-- right side: lock pattern -->
    106         <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
    107              android:layout_width="match_parent"
    108              android:layout_height="match_parent"
    109              android:background="@color/lock_pattern_background" />
    110 
    111     </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
    112 
    113 </com.android.setupwizardlib.SetupWizardLayout>
    114