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     android:importantForAutofill="noExcludeDescendants">
     21 
     22     <include layout="@layout/confirm_lock_background_base" />
     23 
     24     <com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient
     25         xmlns:android="http://schemas.android.com/apk/res/android"
     26         android:id="@+id/topLayout"
     27         android:orientation="vertical"
     28         android:layout_width="@dimen/confirm_credentials_layout_width"
     29         android:layout_height="match_parent"
     30         android:layout_gravity="top|center_horizontal"
     31         android:paddingTop="@dimen/confirm_credentials_top_padding">
     32 
     33         <TextView
     34             style="@android:style/TextAppearance.Material.Headline"
     35             android:id="@+id/headerText"
     36             android:layout_marginStart="?attr/confirmDeviceCredentialsSideMargin"
     37             android:layout_marginEnd="?attr/confirmDeviceCredentialsSideMargin"
     38             android:layout_marginTop="?attr/confirmDeviceCredentialsTopMargin"
     39             android:layout_width="wrap_content"
     40             android:layout_height="wrap_content"
     41             android:textColor="?android:attr/colorAccent"/>
     42 
     43         <TextView
     44             style="@android:style/TextAppearance.Material.Body1"
     45             android:id="@+id/detailsText"
     46             android:layout_marginStart="?attr/confirmDeviceCredentialsSideMargin"
     47             android:layout_marginEnd="?attr/confirmDeviceCredentialsSideMargin"
     48             android:layout_marginTop="12dp"
     49             android:layout_width="wrap_content"
     50             android:layout_height="wrap_content"
     51             />
     52 
     53         <Button
     54             style="@android:style/Widget.Material.Button.Borderless"
     55             android:id="@+id/cancelButton"
     56             android:layout_width="wrap_content"
     57             android:layout_height="wrap_content"
     58             android:text="@string/cancel"
     59             android:layout_marginStart="16dp"
     60             android:layout_marginEnd="16dp"
     61             android:layout_marginTop="16dp"/>
     62 
     63         <View android:layout_width="match_parent"
     64               android:layout_height="0dp"
     65               android:layout_weight="1"/>
     66 
     67         <EditText
     68             android:id="@+id/password_entry"
     69             android:layout_width="208dp"
     70             android:layout_height="wrap_content"
     71             android:layout_gravity="center_horizontal"
     72             android:layout_marginTop="-40dp"
     73             android:inputType="textPassword"
     74             android:imeOptions="actionNext|flagNoFullscreen|flagForceAscii"
     75             android:gravity="center"
     76             android:textSize="16sp"
     77             style="@style/TextAppearance.PasswordEntry"/>
     78 
     79         <TextView
     80             style="@style/TextAppearance.ConfirmDeviceCredentialsErrorText"
     81             android:accessibilityLiveRegion="polite"
     82             android:id="@+id/errorText"
     83             android:layout_width="wrap_content"
     84             android:layout_height="0dp"
     85             android:layout_weight="1"
     86             android:layout_gravity="center_horizontal"
     87             android:layout_marginStart="12dp"
     88             android:layout_marginEnd="12dp"
     89             android:gravity="center_vertical"/>
     90 
     91         <ImageView
     92             android:id="@+id/fingerprintIcon"
     93             android:layout_gravity="center_horizontal"
     94             android:layout_width="wrap_content"
     95             android:layout_height="wrap_content"
     96             android:layout_alignParentBottom="true"
     97             android:layout_marginBottom="24dp"
     98             android:contentDescription="@string/confirm_fingerprint_icon_content_description"
     99             android:visibility="gone"/>
    100 
    101     </com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient>
    102 </FrameLayout>
    103