<?xml version="1.0" encoding="utf-8"?>
<!--
 Copyright 2019 Jeremy Jamet / Kunzisoft.
     
 This file is part of KeePassDX.

  KeePassDX is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  KeePassDX is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with KeePassDX.  If not, see <http://www.gnu.org/licenses/>.
-->
<androidx.constraintlayout.widget.ConstraintLayout
	xmlns:android="http://schemas.android.com/apk/res/android"
	xmlns:tools="http://schemas.android.com/tools"
	xmlns:app="http://schemas.android.com/apk/res-auto"
	android:id="@+id/edit"
	android:padding="20dp"
	android:orientation="vertical"
	android:layout_width="match_parent"
	android:layout_height="match_parent"
	android:importantForAutofill="noExcludeDescendants"
	tools:targetApi="o">
	<androidx.appcompat.widget.AppCompatTextView
		android:id="@+id/explanation_text"
		android:layout_height="wrap_content"
		android:layout_width="0dp"
		android:gravity="center"
		app:layout_constraintTop_toTopOf="parent"
		app:layout_constraintStart_toStartOf="parent"
		app:layout_constraintEnd_toEndOf="parent"
		style="@style/KeepassDXStyle.Text.Preferences.Explanation"/>
	<com.google.android.material.materialswitch.MaterialSwitch
		android:id="@+id/switch_element"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_marginTop="12dp"
		android:text="@string/enable"
		app:layout_constraintTop_toBottomOf="@+id/explanation_text"
		app:layout_constraintEnd_toEndOf="parent"
		android:minHeight="48dp"/>
	<androidx.appcompat.widget.AppCompatEditText
		android:id="@+id/input_text"
		android:layout_height="wrap_content"
		android:layout_width="0dp"
		app:layout_constraintTop_toBottomOf="@+id/switch_element"
		app:layout_constraintStart_toStartOf="parent"
		app:layout_constraintEnd_toEndOf="parent"
		android:minHeight="48dp"/>
</androidx.constraintlayout.widget.ConstraintLayout>