<?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.cardview.widget.CardView
	xmlns:android="http://schemas.android.com/apk/res/android"
	xmlns:app="http://schemas.android.com/apk/res-auto"
	android:id="@+id/entry_history_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">

		<!-- History -->
		<androidx.appcompat.widget.AppCompatTextView
			android:id="@+id/entry_history_label"
			android:layout_width="match_parent"
			android:layout_height="wrap_content"
			android:text="@string/entry_history"
			style="@style/KeepassDXStyle.TextAppearance.LabelTextStyle" />

		<LinearLayout
			android:orientation="horizontal"
			android:layout_width="match_parent"
			android:layout_height="wrap_content"
			android:weightSum="3"
			android:layout_marginTop="4dp"
			android:layout_marginBottom="4dp">

			<androidx.appcompat.widget.AppCompatTextView
				android:id="@+id/entry_history_last_modified"
				android:text="@string/entry_modified"
				style="@style/KeepassDXStyle.TextAppearance.LabelTableTextStyle"
				android:gravity="center"
				android:layout_width="0dp"
				android:layout_height="wrap_content"
				android:layout_weight="1" />

			<androidx.appcompat.widget.AppCompatTextView
				android:id="@+id/entry_history_title"
				android:text="@string/entry_title"
				style="@style/KeepassDXStyle.TextAppearance.LabelTableTextStyle"
				android:gravity="center"
				android:layout_width="0dp"
				android:layout_height="wrap_content"
				android:layout_weight="1" />

			<androidx.appcompat.widget.AppCompatTextView
				android:id="@+id/entry_history_username"
				android:text="@string/entry_user_name"
				style="@style/KeepassDXStyle.TextAppearance.LabelTableTextStyle"
				android:gravity="center"
				android:layout_width="0dp"
				android:layout_height="wrap_content"
				android:layout_weight="1" />

		</LinearLayout>

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

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