]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/res/layout/pattern_details_header.xml
rename patterns to templates
[mobile-ledger.git] / app / src / main / res / layout / pattern_details_header.xml
diff --git a/app/src/main/res/layout/pattern_details_header.xml b/app/src/main/res/layout/pattern_details_header.xml
deleted file mode 100644 (file)
index 245f7e0..0000000
+++ /dev/null
@@ -1,299 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?><!--
-  ~ Copyright © 2021 Damyan Ivanov.
-  ~ This file is part of MoLe.
-  ~ MoLe is free software: you can distribute it and/or modify it
-  ~ under the term of the GNU General Public License as published by
-  ~ the Free Software Foundation, either version 3 of the License, or
-  ~ (at your opinion), any later version.
-  ~
-  ~ MoLe 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 terms for details.
-  ~
-  ~ You should have received a copy of the GNU General Public License
-  ~ along with MoLe. If not, see <https://www.gnu.org/licenses/>.
-  -->
-
-<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
-    xmlns:app="http://schemas.android.com/apk/res-auto"
-    android:id="@+id/pattern_details_item_head"
-    android:layout_width="match_parent"
-    android:layout_height="wrap_content"
-    android:paddingHorizontal="@dimen/text_margin"
-    >
-    <com.google.android.material.textfield.TextInputLayout
-        android:id="@+id/pattern_name_layout"
-        android:layout_width="0dp"
-        android:layout_height="wrap_content"
-        app:layout_constraintEnd_toEndOf="parent"
-        app:layout_constraintStart_toStartOf="parent"
-        app:layout_constraintTop_toTopOf="parent"
-        >
-        <com.google.android.material.textfield.TextInputEditText
-            android:id="@+id/pattern_name"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:hint="@string/pattern_name_label"
-            android:inputType="text"
-            />
-    </com.google.android.material.textfield.TextInputLayout>
-    <com.google.android.material.textfield.TextInputLayout
-        android:id="@+id/pattern_layout"
-        android:layout_width="0dp"
-        android:layout_height="wrap_content"
-        android:textAppearance="?attr/textAppearanceListItem"
-        app:layout_constraintEnd_toEndOf="parent"
-        app:layout_constraintStart_toStartOf="parent"
-        app:layout_constraintTop_toBottomOf="@id/pattern_name_layout"
-        >
-        <com.google.android.material.textfield.TextInputEditText
-            android:id="@+id/pattern"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:hint="@string/pattern_details_pattern_label"
-            android:inputType="text"
-            />
-    </com.google.android.material.textfield.TextInputLayout>
-    <com.google.android.material.textfield.TextInputLayout
-        android:id="@+id/test_text_layout"
-        android:layout_width="0dp"
-        android:layout_height="wrap_content"
-        android:textAppearance="?attr/textAppearanceListItem"
-        app:layout_constraintEnd_toStartOf="@id/pattern_details_head_scan_qr_button"
-        app:layout_constraintStart_toStartOf="parent"
-        app:layout_constraintTop_toBottomOf="@id/pattern_layout"
-        >
-        <com.google.android.material.textfield.TextInputEditText
-            android:id="@+id/test_text"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:hint="@string/pattern_details_test_text_label"
-            android:inputType="text"
-            />
-    </com.google.android.material.textfield.TextInputLayout>
-    <ImageButton
-        android:id="@+id/pattern_details_head_scan_qr_button"
-        android:layout_width="wrap_content"
-        android:layout_height="0dp"
-        android:background="@android:color/transparent"
-        android:contentDescription="@string/scan_qr"
-        android:minWidth="@dimen/thumb_row_height"
-        app:layout_constraintBottom_toBottomOf="@id/test_text_layout"
-        app:layout_constraintEnd_toEndOf="parent"
-        app:layout_constraintTop_toTopOf="@id/test_text_layout"
-        app:srcCompat="@drawable/ic_baseline_qr_code_scanner_24"
-        app:tint="?colorPrimary"
-        />
-    <TextView
-        android:id="@+id/transaction_parameters_label"
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:gravity="end"
-        android:paddingTop="@dimen/text_margin"
-        android:text="@string/pattern_transaction_parameters_label"
-        app:layout_constraintTop_toBottomOf="@id/test_text_layout"
-        />
-    <TextView
-        android:id="@+id/pattern_transaction_date_label"
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:text="@string/pattern_details_date_label"
-        app:layout_constraintTop_toBottomOf="@id/transaction_parameters_label"
-        />
-    <TextView
-        android:id="@+id/pattern_details_year_source_label"
-        android:layout_width="0dp"
-        android:layout_height="wrap_content"
-        android:text="@string/pattern_details_date_year_source_label"
-        android:textAlignment="center"
-        app:layout_constraintEnd_toStartOf="@id/pattern_details_month_source_label"
-        app:layout_constraintStart_toStartOf="parent"
-        app:layout_constraintTop_toBottomOf="@id/pattern_transaction_date_label"
-        />
-    <TextView
-        android:id="@+id/pattern_details_month_source_label"
-        android:layout_width="0dp"
-        android:layout_height="wrap_content"
-        android:text="@string/pattern_details_date_month_source_label"
-        android:textAlignment="center"
-        app:layout_constraintEnd_toStartOf="@id/pattern_details_day_source_label"
-        app:layout_constraintStart_toEndOf="@id/pattern_details_year_source_label"
-        app:layout_constraintTop_toBottomOf="@id/pattern_transaction_date_label"
-        />
-    <TextView
-        android:id="@+id/pattern_details_day_source_label"
-        android:layout_width="0dp"
-        android:layout_height="wrap_content"
-        android:text="@string/pattern_details_date_day_source_label"
-        android:textAlignment="center"
-        app:layout_constraintEnd_toEndOf="parent"
-        app:layout_constraintStart_toEndOf="@id/pattern_details_month_source_label"
-        app:layout_constraintTop_toBottomOf="@id/pattern_transaction_date_label"
-        />
-    <TextView
-        android:id="@+id/pattern_details_year_source"
-        android:layout_width="0dp"
-        android:layout_height="wrap_content"
-        android:text="@string/pattern_details_source_literal"
-        android:textAlignment="center"
-        app:layout_constraintEnd_toStartOf="@id/pattern_details_month_source"
-        app:layout_constraintStart_toStartOf="parent"
-        app:layout_constraintTop_toBottomOf="@id/pattern_details_day_source_label"
-        />
-    <TextView
-        android:id="@+id/pattern_details_month_source"
-        android:layout_width="0dp"
-        android:layout_height="wrap_content"
-        android:text=""
-        android:textAlignment="center"
-        app:layout_constraintEnd_toStartOf="@id/pattern_details_day_source"
-        app:layout_constraintStart_toEndOf="@id/pattern_details_year_source"
-        app:layout_constraintTop_toBottomOf="@id/pattern_details_month_source_label"
-        />
-    <TextView
-        android:id="@+id/pattern_details_day_source"
-        android:layout_width="0dp"
-        android:layout_height="wrap_content"
-        android:text=""
-        android:textAlignment="center"
-        app:layout_constraintEnd_toEndOf="parent"
-        app:layout_constraintStart_toEndOf="@id/pattern_details_month_source"
-        app:layout_constraintTop_toBottomOf="@id/pattern_details_day_source_label"
-        />
-    <androidx.constraintlayout.widget.Barrier
-        android:id="@+id/barrier_before_date_inputs"
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        app:barrierDirection="bottom"
-        app:constraint_referenced_ids="pattern_details_year_source,pattern_details_month_source,pattern_details_day_source"
-        />
-    <com.google.android.material.textfield.TextInputLayout
-        android:id="@+id/pattern_details_date_year_layout"
-        android:layout_width="0dp"
-        android:layout_height="wrap_content"
-        app:layout_constraintEnd_toEndOf="@id/pattern_details_year_source"
-        app:layout_constraintStart_toStartOf="parent"
-        app:layout_constraintTop_toBottomOf="@id/barrier_before_date_inputs"
-        >
-        <com.google.android.material.textfield.TextInputEditText
-            android:id="@+id/pattern_details_date_year"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:gravity="center_horizontal"
-            android:hint="@string/date_year_hint"
-            />
-    </com.google.android.material.textfield.TextInputLayout>
-    <com.google.android.material.textfield.TextInputLayout
-        android:id="@+id/pattern_details_date_month_layout"
-        android:layout_width="0dp"
-        android:layout_height="wrap_content"
-        app:layout_constraintEnd_toEndOf="@id/pattern_details_month_source"
-        app:layout_constraintStart_toStartOf="@id/pattern_details_month_source"
-        app:layout_constraintTop_toBottomOf="@id/barrier_before_date_inputs"
-        >
-        <com.google.android.material.textfield.TextInputEditText
-            android:id="@+id/pattern_details_date_month"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:gravity="center_horizontal"
-            android:hint="@string/date_month_hint"
-            />
-    </com.google.android.material.textfield.TextInputLayout>
-    <com.google.android.material.textfield.TextInputLayout
-        android:id="@+id/pattern_details_date_day_layout"
-        android:layout_width="0dp"
-        android:layout_height="wrap_content"
-        app:layout_constraintBottom_toTopOf="@id/barrier_before_description"
-        app:layout_constraintEnd_toEndOf="parent"
-        app:layout_constraintStart_toStartOf="@id/pattern_details_day_source"
-        app:layout_constraintTop_toBottomOf="@id/barrier_before_date_inputs"
-        >
-        <com.google.android.material.textfield.TextInputEditText
-            android:id="@+id/pattern_details_date_day"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:gravity="center_horizontal"
-            android:hint="@string/date_day_hint"
-            />
-    </com.google.android.material.textfield.TextInputLayout>
-    <androidx.constraintlayout.widget.Barrier
-        android:id="@+id/barrier_before_description"
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:orientation="horizontal"
-        app:barrierDirection="bottom"
-        app:constraint_referenced_ids="pattern_details_date_day_layout,pattern_details_date_month_layout,pattern_details_date_year_layout"
-        app:layout_constraintEnd_toEndOf="parent"
-        app:layout_constraintStart_toStartOf="parent"
-        />
-    <TextView
-        android:id="@+id/pattern_transaction_description_source_label"
-        android:layout_width="0dp"
-        android:layout_height="match_parent"
-        android:paddingTop="@dimen/text_margin"
-        android:text="@string/transaction_description_source_label"
-        android:textAppearance="?attr/textAppearanceListItem"
-        app:layout_constraintEnd_toEndOf="parent"
-        app:layout_constraintStart_toStartOf="parent"
-        app:layout_constraintTop_toBottomOf="@id/barrier_before_description"
-        />
-    <TextView
-        android:id="@+id/pattern_transaction_description_source"
-        android:layout_width="0dp"
-        android:layout_height="wrap_content"
-        android:minWidth="100dp"
-        android:textAppearance="?attr/textAppearanceListItemSecondary"
-        app:layout_constraintEnd_toEndOf="parent"
-        app:layout_constraintStart_toStartOf="parent"
-        app:layout_constraintTop_toBottomOf="@id/pattern_transaction_description_source_label"
-        />
-    <com.google.android.material.textfield.TextInputLayout
-        android:id="@+id/transaction_description_layout"
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        app:layout_constraintTop_toBottomOf="@id/pattern_transaction_description_source"
-        >
-        <com.google.android.material.textfield.TextInputEditText
-            android:id="@+id/transaction_description"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:hint="@string/pattern_transaction_description_hint"
-            />
-    </com.google.android.material.textfield.TextInputLayout>
-    <TextView
-        android:id="@+id/pattern_transaction_comment_source_label"
-        android:layout_width="0dp"
-        android:layout_height="match_parent"
-        android:paddingTop="@dimen/text_margin"
-        android:text="@string/transaction_comment_source_label"
-        android:textAppearance="?attr/textAppearanceListItem"
-        app:layout_constraintEnd_toEndOf="parent"
-        app:layout_constraintStart_toStartOf="parent"
-        app:layout_constraintTop_toBottomOf="@id/transaction_description_layout"
-        />
-    <TextView
-        android:id="@+id/pattern_transaction_comment_source"
-        android:layout_width="0dp"
-        android:layout_height="wrap_content"
-        android:minWidth="100dp"
-        android:textAppearance="?attr/textAppearanceListItemSecondary"
-        app:layout_constraintEnd_toEndOf="parent"
-        app:layout_constraintStart_toStartOf="parent"
-        app:layout_constraintTop_toBottomOf="@id/pattern_transaction_comment_source_label"
-        />
-    <com.google.android.material.textfield.TextInputLayout
-        android:id="@+id/transaction_comment_layout"
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        app:layout_constraintTop_toBottomOf="@id/pattern_transaction_comment_source"
-        >
-        <com.google.android.material.textfield.TextInputEditText
-            android:id="@+id/transaction_comment"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:hint="@string/pattern_transaction_comment_hint"
-            />
-    </com.google.android.material.textfield.TextInputLayout>
-
-</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file