android:id="@+id/pattern_details_item_head"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:animateLayoutChanges="true"
android:padding="@dimen/text_margin"
>
+ <ImageButton
+ android:id="@+id/template_details_template_params_help_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="@android:color/transparent"
+ android:contentDescription="@string/template_details_template_params_help_description"
+ android:minWidth="@dimen/thumb_row_height"
+ android:src="@drawable/ic_baseline_help_outline_24_primary"
+ app:layout_constraintBottom_toBottomOf="@id/template_details_template_params_label"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintTop_toTopOf="@id/template_details_template_params_label"
+ />
+ <TextView
+ android:id="@+id/template_details_template_params_label"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="@dimen/text_margin"
+ android:gravity="end"
+ android:text="@string/template_details_template_params_label"
+ android:textAppearance="@android:style/TextAppearance.Material.Medium"
+ app:layout_constraintBottom_toTopOf="@id/pattern_name_layout"
+ app:layout_constraintEnd_toStartOf="@id/template_details_template_params_help_button"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent"
+ />
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/pattern_name_layout"
android:layout_width="0dp"
app:layout_constraintBottom_toTopOf="@id/pattern_layout"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintTop_toBottomOf="@id/template_details_template_params_label"
>
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/template_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/template_details_pattern_label"
- android:inputType="text"
+ android:inputType="text|textMultiLine"
/>
</com.google.android.material.textfield.TextInputLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/template_details_test_text_label"
- android:inputType="text"
+ android:inputType="text|textMultiLine"
/>
</com.google.android.material.textfield.TextInputLayout>
<ImageButton
android:id="@+id/transaction_parameters_label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:layout_marginBottom="@dimen/text_margin"
android:gravity="end"
android:text="@string/template_transaction_parameters_label"
- android:textAppearance="?attr/textAppearanceListItem"
+ android:textAppearance="@android:style/TextAppearance.Material.Medium"
app:layout_constraintBottom_toTopOf="@+id/pattern_transaction_date_label"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
android:layout_height="wrap_content"
android:text="@string/template_details_date_label"
android:textAppearance="?attr/textAppearanceListItem"
+ app:layout_constraintBottom_toTopOf="@id/template_details_year_source_label"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/transaction_parameters_label"
android:layout_height="wrap_content"
android:text="@string/template_details_date_year_source_label"
android:textAlignment="center"
- android:textAppearance="?attr/textAppearanceListItem"
+ android:textAppearance="@android:style/TextAppearance.Material.Body1"
app:layout_constraintBottom_toTopOf="@+id/template_details_year_source"
app:layout_constraintEnd_toStartOf="@id/template_details_month_source_label"
app:layout_constraintStart_toStartOf="parent"
android:layout_height="wrap_content"
android:text="@string/template_details_date_month_source_label"
android:textAlignment="center"
- android:textAppearance="?attr/textAppearanceListItem"
+ android:textAppearance="@android:style/TextAppearance.Material.Body1"
app:layout_constraintBottom_toTopOf="@+id/template_details_month_source"
app:layout_constraintEnd_toStartOf="@id/template_details_day_source_label"
app:layout_constraintStart_toEndOf="@id/template_details_year_source_label"
android:layout_height="wrap_content"
android:text="@string/template_details_date_day_source_label"
android:textAlignment="center"
- android:textAppearance="?attr/textAppearanceListItem"
+ android:textAppearance="@android:style/TextAppearance.Material.Body1"
app:layout_constraintBottom_toTopOf="@+id/template_details_day_source"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/template_details_month_source_label"
android:id="@+id/transaction_comment_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:layout_marginBottom="@dimen/text_margin"
app:endIconMode="clear_text"
- app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintBottom_toTopOf="@id/template_is_fallback_label"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/template_transaction_comment_source"
android:hint="@string/template_transaction_comment_hint"
/>
</com.google.android.material.textfield.TextInputLayout>
+ <TextView
+ android:id="@+id/template_is_fallback_label"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:text="@string/template_is_fallback_label"
+ android:textAppearance="?attr/textAppearanceListItem"
+ app:layout_constraintBottom_toTopOf="@+id/template_is_fallback_text"
+ app:layout_constraintEnd_toStartOf="@id/template_is_fallback_switch"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@id/transaction_comment_layout"
+ />
+ <TextView
+ android:id="@+id/template_is_fallback_text"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:textAppearance="?attr/textAppearanceListItemSecondary"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toStartOf="@id/template_is_fallback_switch"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@id/template_is_fallback_label"
+ />
+ <com.google.android.material.switchmaterial.SwitchMaterial
+ android:id="@+id/template_is_fallback_switch"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ app:layout_constraintBottom_toBottomOf="@id/template_is_fallback_text"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintTop_toTopOf="@id/template_is_fallback_label"
+ />
+
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file