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.GlifLayout
     19     xmlns:android="http://schemas.android.com/apk/res/android"
     20     android:id="@+id/setup_wizard_layout"
     21     android:layout_width="match_parent"
     22     android:layout_height="match_parent"
     23     android:layout="@layout/suw_glif_blank_template"
     24     style="?attr/fingerprint_layout_theme">
     25 
     26     <LinearLayout
     27         style="@style/SuwContentFrame"
     28         android:layout_width="match_parent"
     29         android:layout_height="match_parent"
     30         android:orientation="horizontal"
     31         android:clipToPadding="false"
     32         android:clipChildren="false"
     33         android:paddingBottom="0dp">
     34 
     35         <!-- Both texts are kept as separate text views so it doesn't jump around in portrait.
     36              See layouts/fingerprint_enroll_enrolling_base.xml. -->
     37         <LinearLayout
     38             android:layout_width="0dp"
     39             android:layout_weight="1"
     40             android:layout_height="match_parent"
     41             android:layout_marginStart="?attr/suwMarginSides"
     42             android:layout_marginBottom="@dimen/suw_content_frame_padding_bottom"
     43             android:clipChildren="false"
     44             android:clipToPadding="false"
     45             android:orientation="vertical">
     46 
     47             <ImageView
     48                 android:id="@+id/suw_layout_icon"
     49                 style="@style/SuwGlifIcon"
     50                 android:layout_width="wrap_content"
     51                 android:layout_height="wrap_content"
     52                 android:layout_marginStart="0dp"
     53                 android:layout_marginEnd="0dp"
     54                 android:src="@drawable/ic_fingerprint_header" />
     55 
     56             <TextView
     57                 android:id="@+id/suw_layout_title"
     58                 style="@style/SuwGlifHeaderTitle"
     59                 android:layout_width="match_parent"
     60                 android:layout_height="wrap_content"
     61                 android:layout_marginStart="0dp"
     62                 android:layout_marginEnd="0dp" />
     63 
     64             <FrameLayout
     65                 android:layout_width="match_parent"
     66                 android:layout_height="wrap_content">
     67 
     68                 <TextView
     69                     style="@style/SuwDescription.Glif"
     70                     android:id="@+id/start_message"
     71                     android:layout_width="match_parent"
     72                     android:layout_height="wrap_content"
     73                     android:text="@string/security_settings_fingerprint_enroll_start_message"/>
     74 
     75                 <TextView
     76                     style="@style/SuwDescription.Glif"
     77                     android:id="@+id/repeat_message"
     78                     android:layout_width="match_parent"
     79                     android:layout_height="wrap_content"
     80                     android:text="@string/security_settings_fingerprint_enroll_repeat_message"
     81                     android:visibility="invisible"/>
     82 
     83             </FrameLayout>
     84 
     85         </LinearLayout>
     86 
     87         <FrameLayout
     88             android:layout_width="0dp"
     89             android:layout_weight="1"
     90             android:layout_height="match_parent">
     91 
     92             <include layout="@layout/fingerprint_enroll_enrolling_content"
     93                 android:layout_width="match_parent"
     94                 android:layout_height="match_parent"
     95                 android:layout_gravity="center"/>
     96 
     97             <TextView
     98                 style="@style/TextAppearance.FingerprintErrorText"
     99                 android:id="@+id/error_text"
    100                 android:layout_width="wrap_content"
    101                 android:layout_height="wrap_content"
    102                 android:layout_marginBottom="16dp"
    103                 android:layout_gravity="center_horizontal|bottom"
    104                 android:accessibilityLiveRegion="polite"
    105                 android:visibility="invisible"/>
    106 
    107         </FrameLayout>
    108 
    109     </LinearLayout>
    110 
    111 </com.android.setupwizardlib.GlifLayout>
    112