Home | History | Annotate | Download | only in layout-land
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2017 The Android Open Source Project
      3 
      4      Licensed under the Apache License, Version 2.0 (the "License");
      5      you may not use this file except in compliance with the License.
      6      You may obtain a copy of the License at
      7 
      8           http://www.apache.org/licenses/LICENSE-2.0
      9 
     10      Unless required by applicable law or agreed to in writing, software
     11      distributed under the License is distributed on an "AS IS" BASIS,
     12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13      See the License for the specific language governing permissions and
     14      limitations under the License.
     15 -->
     16 <com.android.setupwizardlib.GlifLayout
     17     xmlns:android="http://schemas.android.com/apk/res/android"
     18     android:id="@+id/setup_wizard_layout"
     19     android:layout_width="match_parent"
     20     android:layout_height="match_parent"
     21     android:icon="@drawable/ic_lock"
     22     android:layout="@layout/suw_glif_blank_template">
     23 
     24     <com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient
     25         android:id="@+id/topLayout"
     26         android:layout_width="match_parent"
     27         android:layout_height="match_parent"
     28         android:orientation="horizontal">
     29 
     30         <ScrollView
     31             android:layout_width="0dp"
     32             android:layout_height="match_parent"
     33             android:layout_weight="1"
     34             android:fillViewport="true">
     35 
     36             <LinearLayout
     37                 android:layout_width="match_parent"
     38                 android:layout_height="wrap_content"
     39                 android:orientation="vertical"
     40                 android:paddingBottom="24dp">
     41 
     42                 <ImageView
     43                     android:id="@+id/suw_layout_icon"
     44                     style="@style/SuwGlifIcon"
     45                     android:layout_width="wrap_content"
     46                     android:layout_height="wrap_content"
     47                     android:src="@drawable/ic_lock" />
     48 
     49                 <TextView
     50                     android:id="@+id/headerText"
     51                     style="@style/SuwGlifHeaderTitle"
     52                     android:layout_width="match_parent"
     53                     android:layout_height="wrap_content" />
     54 
     55                 <TextView
     56                     style="@style/SuwDescription.Glif"
     57                     android:id="@+id/detailsText"
     58                     android:layout_width="match_parent"
     59                     android:layout_height="wrap_content"
     60                     android:layout_marginStart="?attr/suwMarginSides"
     61                     android:layout_marginEnd="?attr/suwMarginSides" />
     62 
     63                 <Button
     64                     android:id="@+id/cancelButton"
     65                     style="@style/SetupWizardButton.Negative"
     66                     android:layout_width="wrap_content"
     67                     android:layout_height="wrap_content"
     68                     android:layout_marginStart="?attr/suwMarginSides"
     69                     android:layout_marginEnd="?attr/suwMarginSides"
     70                     android:text="@string/cancel" />
     71 
     72                 <Space
     73                     android:layout_width="match_parent"
     74                     android:layout_height="0dp"
     75                     android:layout_weight="1" />
     76 
     77                 <TextView
     78                     style="@style/TextAppearance.ConfirmDeviceCredentialsErrorText"
     79                     android:accessibilityLiveRegion="polite"
     80                     android:id="@+id/errorText"
     81                     android:layout_width="wrap_content"
     82                     android:layout_height="wrap_content"
     83                     android:layout_marginStart="?attr/suwMarginSides"
     84                     android:layout_marginEnd="?attr/suwMarginSides"
     85                     android:layout_marginBottom="24dp"
     86                     android:gravity="center_vertical"/>
     87 
     88                 <ImageView
     89                     android:id="@+id/fingerprintIcon"
     90                     android:layout_gravity="center_horizontal"
     91                     android:layout_width="wrap_content"
     92                     android:layout_height="wrap_content"
     93                     android:contentDescription="@string/confirm_fingerprint_icon_content_description"
     94                     android:visibility="gone"/>
     95             </LinearLayout>
     96 
     97         </ScrollView>
     98 
     99         <com.android.setupwizardlib.view.FillContentLayout
    100             style="@style/LockPatternContainerStyle"
    101             android:layout_width="0dp"
    102             android:layout_height="match_parent"
    103             android:layout_weight="1"
    104             android:paddingStart="0dp">
    105 
    106             <com.android.internal.widget.LockPatternView android:id="@+id/lockPattern"
    107                 android:layout_width="match_parent"
    108                 android:layout_height="match_parent"
    109                 android:layout_gravity="center"
    110                 android:background="@color/lock_pattern_background" />
    111 
    112         </com.android.setupwizardlib.view.FillContentLayout>
    113 
    114     </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
    115 </com.android.setupwizardlib.GlifLayout>
    116