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

96 lines
4.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/wallet_transactions_group"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="de.schildbach.wallet.ui.main.WalletTransactionsFragment">
<ProgressBar
android:id="@+id/loading"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center" />
<TextView
android:id="@+id/wallet_transactions_empty"
style="@style/Body2.Secondary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="64dp"
android:gravity="center_horizontal"
android:textAlignment="gravity"
android:text="@string/wallet_transactions_fragment_empty_text"
android:textSize="@dimen/font_size_small"
android:visibility="invisible"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingStart="16dp"
android:paddingEnd="4dp">
<Button
android:id="@+id/transaction_filter_btn"
style="@style/Button.Tertiary.Small.Blue"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableEnd="@drawable/ic_transaction_filter"
android:drawablePadding="8dp"
android:text="@string/explore_filter"
android:textSize="13sp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" />
<TextView
android:id="@+id/transaction_list_title"
style="@style/Body2.Medium.Secondary"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:text="@string/history_title"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/syncing"
style="@style/Body1"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginHorizontal="4dp"
android:maxLines="1"
android:ellipsize="middle"
android:layout_weight="1"
android:gravity="end"
android:textAlignment="gravity"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@id/transaction_list_title"
app:layout_constraintEnd_toStartOf="@id/transaction_filter_btn"
app:layout_constraintTop_toTopOf="parent"
tools:text="Syncing 63%" />
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/wallet_transactions_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:animateLayoutChanges="false"
android:clipToPadding="false"
android:scrollbars="vertical"
android:paddingBottom="80dp"
tools:itemCount="5"
tools:listitem="@layout/transaction_row"/>
</LinearLayout>
</FrameLayout>