Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2015 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 <FrameLayout
     17     xmlns:android="http://schemas.android.com/apk/res/android"
     18     android:layout_width="match_parent"
     19     android:layout_height="match_parent" >
     20 
     21     <include layout="@layout/confirm_lock_background_base" />
     22 
     23     <com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient
     24         xmlns:android="http://schemas.android.com/apk/res/android"
     25         android:id="@+id/topLayout"
     26         android:orientation="vertical"
     27         android:layout_width="@dimen/confirm_credentials_layout_width"
     28         android:layout_height="match_parent"
     29         android:layout_gravity="top|center_horizontal"
     30         android:paddingTop="@dimen/confirm_credentials_top_padding">
     31 
     32         <ScrollView
     33             android:layout_width="match_parent"
     34             android:layout_height="0dp"
     35             android:layout_weight="2">
     36 
     37             <LinearLayout
     38                 android:layout_width="match_parent"
     39                 android:layout_height="match_parent"
     40                 android:orientation="vertical">
     41 
     42                 <TextView
     43                     style="@android:style/TextAppearance.Material.Headline"
     44                     android:id="@+id/headerText"
     45                     android:layout_marginStart="?attr/confirmDeviceCredentialsSideMargin"
     46                     android:layout_marginEnd="?attr/confirmDeviceCredentialsSideMargin"
     47                     android:layout_marginTop="?attr/confirmDeviceCredentialsTopMargin"
     48                     android:layout_width="wrap_content"
     49                     android:layout_height="wrap_content"
     50                     android:textColor="?android:attr/colorAccent"/>
     51 
     52                 <TextView
     53                     style="@android:style/TextAppearance.Material.Body1"
     54                     android:id="@+id/detailsText"
     55                     android:layout_marginStart="?attr/confirmDeviceCredentialsSideMargin"
     56                     android:layout_marginEnd="?attr/confirmDeviceCredentialsSideMargin"
     57                     android:layout_marginTop="12dp"
     58                     android:layout_width="wrap_content"
     59                     android:layout_height="wrap_content"/>
     60 
     61                 <Button
     62                     style="@android:style/Widget.Material.Button.Borderless"
     63                     android:id="@+id/cancelButton"
     64                     android:layout_width="wrap_content"
     65                     android:layout_height="wrap_content"
     66                     android:text="@string/cancel"
     67                     android:layout_marginStart="16dp"
     68                     android:layout_marginEnd="16dp"
     69                     android:layout_marginTop="16dp"/>
     70             </LinearLayout>
     71 
     72         </ScrollView>
     73 
     74         <com.android.internal.widget.LockPatternView
     75             android:id="@+id/lockPattern"
     76             android:layout_width="312dp"
     77             android:layout_height="0dp"
     78             android:layout_weight="3"
     79             android:layout_gravity="center_horizontal"/>
     80 
     81         <LinearLayout
     82             android:layout_width="match_parent"
     83             android:layout_height="0dp"
     84             android:layout_weight="1"
     85             android:orientation="vertical">
     86 
     87             <TextView
     88                 style="@style/TextAppearance.ConfirmDeviceCredentialsErrorText"
     89                 android:accessibilityLiveRegion="polite"
     90                 android:id="@+id/errorText"
     91                 android:layout_width="wrap_content"
     92                 android:layout_height="0dp"
     93                 android:layout_weight="1"
     94                 android:layout_gravity="center_horizontal"
     95                 android:layout_marginTop="12dp"
     96                 android:layout_marginStart="12dp"
     97                 android:layout_marginEnd="12dp"
     98                 android:gravity="center_vertical"/>
     99 
    100             <ImageView
    101                 android:id="@+id/fingerprintIcon"
    102                 android:layout_gravity="center_horizontal"
    103                 android:layout_width="wrap_content"
    104                 android:layout_height="wrap_content"
    105                 android:layout_alignParentBottom="true"
    106                 android:layout_marginBottom="24dp"
    107                 android:contentDescription="@string/confirm_fingerprint_icon_content_description"
    108                 android:visibility="gone"/>
    109         </LinearLayout>
    110 
    111     </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
    112 </FrameLayout>
    113