Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3     Copyright (C) 2014 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 <!-- Used in phone portrait and tablet, as referenced in alias.xml. -->
     19 <com.android.setupwizardlib.GlifLayout
     20     xmlns:android="http://schemas.android.com/apk/res/android"
     21     xmlns:settings="http://schemas.android.com/apk/res-auto"
     22     android:layout_width="match_parent"
     23     android:layout_height="match_parent"
     24     android:icon="@drawable/ic_lock"
     25     settings:suwHeaderText="@string/wifi_setup_wizard_title">
     26 
     27     <com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient
     28         android:id="@+id/topLayout"
     29         style="@style/SuwContentFrame"
     30         android:layout_width="match_parent"
     31         android:layout_height="match_parent"
     32         android:orientation="vertical">
     33 
     34         <!-- takes up all space above button bar at bottom -->
     35         <LinearLayout
     36             android:layout_width="match_parent"
     37             android:layout_height="0dip"
     38             android:layout_weight="1"
     39             android:gravity="center"
     40             android:orientation="vertical">
     41 
     42             <TextView android:id="@+id/headerText"
     43                 android:layout_width="match_parent"
     44                 android:layout_height="wrap_content"
     45                 android:layout_weight="1"
     46                 android:minLines="2"
     47                 android:gravity="center"
     48                 android:textSize="18sp" />
     49 
     50             <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
     51                 android:layout_width="match_parent"
     52                 android:layout_height="0dip"
     53                 android:layout_weight="4" />
     54 
     55             <!-- Buttons are hidden during setup, and use the buttons in setup navigation bar instead -->
     56             <LinearLayout
     57                 android:layout_width="match_parent"
     58                 android:layout_height="wrap_content"
     59                 android:orientation="horizontal">
     60 
     61                 <!-- left : cancel, or re-try -->
     62                 <Button android:id="@+id/footerLeftButton"
     63                     style="@style/SetupWizardButton.Negative"
     64                     android:layout_width="wrap_content"
     65                     android:layout_height="wrap_content"
     66                     android:text="@string/lockpattern_tutorial_cancel_label" />
     67 
     68                 <Space
     69                     android:layout_width="0dp"
     70                     android:layout_height="0dp"
     71                     android:layout_weight="1" />
     72 
     73                 <!-- right : confirm or ok -->
     74                 <Button android:id="@+id/footerRightButton"
     75                     style="@style/SetupWizardButton.Positive"
     76                     android:layout_width="wrap_content"
     77                     android:layout_height="wrap_content"
     78                     android:text="@string/lockpattern_tutorial_continue_label" />
     79 
     80             </LinearLayout>
     81 
     82         </LinearLayout>
     83 
     84         <TextView android:id="@+id/footerText"
     85             android:layout_width="wrap_content"
     86             android:layout_height="wrap_content"
     87             android:layout_gravity="center_horizontal"
     88             android:minHeight="50dip"
     89             android:textSize="14sp"
     90             android:visibility="gone"/>
     91 
     92     </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
     93 
     94 </com.android.setupwizardlib.GlifLayout>
     95