<?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/>.
-->
<LinearLayout 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"
	tools:targetApi="o"
	android:layout_width="match_parent"
	android:layout_height="wrap_content"
	android:orientation="vertical">

	<com.kunzisoft.keepass.view.TemplateEditView
		android:id="@+id/template_view"
		android:layout_width="match_parent"
		android:layout_height="wrap_content"/>

	<androidx.cardview.widget.CardView
		android:id="@+id/entry_attachments_container"
		android:layout_width="match_parent"
		android:layout_height="wrap_content"
		style="?attr/cardViewStyle">
		<LinearLayout
			android:layout_height="wrap_content"
			android:layout_width="match_parent"
			android:layout_margin="@dimen/card_view_padding"
			android:orientation="vertical">

			<!-- Binary files -->
			<androidx.appcompat.widget.AppCompatTextView
				android:id="@+id/entry_attachments_label"
				android:layout_width="match_parent"
				android:layout_height="wrap_content"
				android:text="@string/entry_attachments"
				style="@style/KeepassDXStyle.TextAppearance.LabelTextStyle" />

			<androidx.recyclerview.widget.RecyclerView
				android:id="@+id/entry_attachments_list"
				android:layout_width="match_parent"
				android:layout_height="wrap_content"
				android:descendantFocusability="afterDescendants" />

		</LinearLayout>
	</androidx.cardview.widget.CardView>

	<androidx.cardview.widget.CardView
		android:id="@+id/entry_tags_container"
		android:layout_width="match_parent"
		android:layout_height="wrap_content"
		style="?attr/cardViewStyle">
		<com.google.android.material.textfield.TextInputLayout
			android:id="@+id/entry_tags_label"
			android:layout_width="match_parent"
			android:layout_height="wrap_content"
			android:layout_margin="@dimen/card_view_padding"
			android:hint="@string/tags"
			style="@style/KeepassDXStyle.TextInputLayout.ExposedMenu">
			<com.kunzisoft.keepass.view.TagsCompletionView
				android:id="@+id/entry_tags_completion_view"
				android:layout_width="match_parent"
				android:layout_height="wrap_content" />
		</com.google.android.material.textfield.TextInputLayout>
	</androidx.cardview.widget.CardView>

</LinearLayout>
