Files
AndroidJava/dash-wallet/wallet/res/layout/dialog_transaction_metadata.xml
T
coco 7846a45f2c a
2026-07-03 15:47:27 +08:00

280 lines
12 KiB
XML

<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (c) 2024 Dash Core Group
~
~ This program 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.
~
~ This program 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 this program. If not, see <https://www.gnu.org/licenses/>.
-->
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto">
<View
android:id="@+id/drag_indicator"
android:layout_width="40dp"
android:layout_height="4dp"
android:layout_gravity="center"
android:layout_marginTop="15dp"
android:background="@drawable/rounded_background"
android:theme="@style/DragIndicatorBackground"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:background="@color/light_gray" />
<ImageButton
android:id="@+id/collapse_button"
style="@style/DialogCloseButton"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<LinearLayout
android:id="@+id/text_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="20dp"
android:layout_marginBottom="40dp"
android:orientation="vertical"
app:layout_constraintTop_toBottomOf="@id/collapse_button"
app:layout_constraintBottom_toTopOf="@+id/save_data_button"
>
<TextView
style="@style/Headline5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/transaction_metadata_title"
/>
<TextView
style="@style/Body2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/transaction_metadata_description"
/>
<TextView
android:id="@+id/transaction_metadata_cost"
style="@style/Caption.SemiBold.Blue"
android:layout_width="match_parent"
android:gravity="center_vertical"
android:layout_height="30dp"
android:text="@string/transaction_metadata_cost"
/>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="28dp" >
<ImageView
android:id="@+id/payment_category_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:layout_marginStart="8dp"
android:src="@drawable/ic_file"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
/>
<TextView
android:id="@+id/payment_category_title"
style="@style/Subtitle2.Bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:layout_marginStart="20dp"
android:text="@string/transaction_metadata_payment_category"
app:layout_constraintStart_toEndOf="@id/payment_category_icon"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:maxLines="2"
style="@style/Caption"
android:text="@string/transaction_metadata_payment_category_description"
app:layout_constraintTop_toBottomOf="@id/payment_category_title"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@id/payment_category_title"/>
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp" >
<ImageView
android:id="@+id/tax_category_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:layout_marginStart="8dp"
android:src="@drawable/ic_file"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
/>
<TextView
android:id="@+id/tax_category_title"
style="@style/Subtitle2.Bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:layout_marginStart="20dp"
android:text="@string/transaction_metadata_tax_category"
app:layout_constraintBottom_toBottomOf="@id/tax_category_icon"
app:layout_constraintStart_toEndOf="@id/tax_category_icon"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:maxLines="2"
style="@style/Caption"
android:text="@string/transaction_metadata_tax_category_description"
app:layout_constraintTop_toBottomOf="@id/tax_category_title"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@id/tax_category_title"/>
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp" >
<ImageView
android:id="@+id/fiat_prices_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:layout_marginStart="8dp"
android:src="@drawable/ic_file"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
/>
<TextView
android:id="@+id/fiat_prices_title"
style="@style/Subtitle2.Bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:layout_marginStart="20dp"
android:text="@string/transaction_metadata_fiat_prices"
app:layout_constraintBottom_toBottomOf="@id/fiat_prices_icon"
app:layout_constraintStart_toEndOf="@id/fiat_prices_icon"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:maxLines="2"
style="@style/Caption"
android:text="@string/transaction_metadata_fiat_price_description"
app:layout_constraintTop_toBottomOf="@id/fiat_prices_title"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@id/fiat_prices_title"/>
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp" >
<ImageView
android:id="@+id/memos_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:layout_marginStart="8dp"
android:src="@drawable/ic_file"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
/>
<TextView
android:id="@+id/memos_title"
style="@style/Subtitle2.Bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:layout_marginStart="20dp"
android:text="@string/transaction_metadata_private_memos"
app:layout_constraintBottom_toBottomOf="@id/memos_icon"
app:layout_constraintStart_toEndOf="@id/memos_icon"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:maxLines="2"
style="@style/Caption"
android:text="@string/transaction_metadata_private_memo_description"
app:layout_constraintTop_toBottomOf="@id/memos_title"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@id/memos_title"/>
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp" >
<ImageView
android:id="@+id/giftcard_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:layout_marginStart="8dp"
android:src="@drawable/ic_file"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
/>
<TextView
android:id="@+id/giftcard_title"
style="@style/Subtitle2.Bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:layout_marginStart="20dp"
android:text="@string/transaction_metadata_gift_card_info"
app:layout_constraintBottom_toBottomOf="@id/giftcard_icon"
app:layout_constraintStart_toEndOf="@id/giftcard_icon"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:maxLines="2"
style="@style/Caption"
android:text="@string/transaction_metadata_gift_card_info_description"
app:layout_constraintTop_toBottomOf="@id/giftcard_title"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@id/giftcard_title"/>
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>
<Button
android:id="@+id/save_data_button"
android:layout_marginHorizontal="15dp"
android:layout_marginVertical="20dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="@style/Button.Primary.Blue"
android:text="@string/transaction_metadata_save_data"
app:layout_constraintBottom_toBottomOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>