<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2015 The Android Open Source Project
     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at
          http://www.apache.org/licenses/LICENSE-2.0
     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<FrameLayout
		xmlns:android="http://schemas.android.com/apk/res/android"
		android:id="@+id/topFrame"
		android:layout_height="match_parent"
		android:layout_width="match_parent"
		android:paddingTop="36dp"
		android:background="?android:windowBackground">

<LinearLayout
		android:id="@+id/topLayout"
		android:orientation="vertical"
		android:layout_gravity="center"
		android:layout_width="wrap_content"
		android:layout_height="match_parent">

	<TextView
			android:id="@+id/headerText"
			android:layout_marginLeft="?attr/confirmDeviceCredentialsSideMargin"
			android:layout_marginRight="?attr/confirmDeviceCredentialsSideMargin"
			android:layout_marginTop="?attr/confirmDeviceCredentialsTopMargin"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:textSize="24sp"
			android:fontFamily="sans-serif"
			android:textColor="?attr/colorAccent"/>

	<TextView
			android:id="@+id/detailsText"
			android:layout_marginLeft="?attr/confirmDeviceCredentialsSideMargin"
			android:layout_marginRight="?attr/confirmDeviceCredentialsSideMargin"
			android:layout_marginTop="12dp"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:textSize="14sp"
			android:fontFamily="sans-serif"
			android:textColor="?attr/textColorPrimary"
			/>

	<com.google.android.material.button.MaterialButton
			android:id="@+id/cancelButton"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:layout_marginLeft="?attr/confirmDeviceCredentialsSideMargin"
			android:layout_marginRight="?attr/confirmDeviceCredentialsSideMargin"
			android:text="@string/cancel"
			android:layout_marginTop="16dp"
			/>

	<View android:layout_width="match_parent"
		  android:layout_height="0dp"
		  android:layout_weight="1"/>

	<ch.threema.app.ui.ThreemaEditText
			android:id="@+id/password_entry"
			android:layout_width="208dp"
			android:layout_height="wrap_content"
			android:layout_gravity="center_horizontal"
			android:layout_marginTop="-40dp"
			android:inputType="textPassword"
			android:imeOptions="actionNext"
			android:gravity="center"
			android:textSize="16sp"
			android:singleLine="true"
			android:fontFamily="sans-serif"
			android:textColor="?attr/textColorPrimary">
			<requestFocus />
		</ch.threema.app.ui.ThreemaEditText>

	<TextView
			android:id="@+id/errorText"
			android:layout_width="wrap_content"
			android:layout_height="0dp"
			android:layout_weight="1"
			android:layout_gravity="center_horizontal"
			android:layout_marginStart="?attr/confirmDeviceCredentialsSideMargin"
			android:layout_marginEnd="?attr/confirmDeviceCredentialsSideMargin"
			android:textSize="12sp"
			android:fontFamily="sans-serif"
			android:textColor="@color/material_red"
			android:gravity="center_vertical"/>

</LinearLayout>

</FrameLayout>
