Updated on 2026-08-14
This commit is contained in:
parent
21e8d45e17
commit
6b4c5381fc
2 changed files with 31 additions and 2 deletions
|
|
@ -99,6 +99,14 @@ class WalletDetailsFragment : Fragment(R.layout.fragment_wallet_details), StoreS
|
|||
val selectedWallet = state.getSelectedWalletData() ?: return
|
||||
|
||||
tv_currency_title.text = selectedWallet.currencyData.currency
|
||||
val currency = selectedWallet.currency
|
||||
if (currency is Currency.Token) {
|
||||
tv_currency_subtitle.text = currency.blockchain.tokenDisplayName()
|
||||
tv_currency_subtitle.show()
|
||||
} else {
|
||||
tv_currency_subtitle.hide()
|
||||
}
|
||||
|
||||
|
||||
showPendingTransactionsIfPresent(selectedWallet.pendingTransactions)
|
||||
setupAddressCard(selectedWallet)
|
||||
|
|
|
|||
|
|
@ -52,7 +52,6 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:paddingBottom="16dp"
|
||||
android:textColor="@color/darkGray6"
|
||||
android:textSize="32sp"
|
||||
android:textStyle="bold"
|
||||
|
|
@ -60,6 +59,26 @@
|
|||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:text="Bitcoin" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_currency_subtitle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:textColor="@color/darkGray1"
|
||||
android:textSize="14sp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tv_currency_title"
|
||||
tools:text="Ethereum token" />
|
||||
|
||||
<androidx.constraintlayout.widget.Barrier
|
||||
android:id="@+id/barrier_currency_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:barrierDirection="bottom"
|
||||
app:constraint_referenced_ids="tv_currency_subtitle,tv_currency_title" />
|
||||
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rv_pending_transaction"
|
||||
android:layout_width="match_parent"
|
||||
|
|
@ -69,13 +88,15 @@
|
|||
android:overScrollMode="never"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tv_currency_title" />
|
||||
android:layout_marginTop="16dp"
|
||||
app:layout_constraintTop_toBottomOf="@id/barrier_currency_title" />
|
||||
|
||||
<include
|
||||
android:id="@+id/l_wallet_details"
|
||||
layout="@layout/layout_wallet_details"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
app:layout_constraintTop_toBottomOf="@id/rv_pending_transaction" />
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue