diff --git a/app/src/main/java/com/m2049r/xmrwallet/fragment/transaction/TransactionFragment.java b/app/src/main/java/com/m2049r/xmrwallet/fragment/transaction/TransactionFragment.java index 1ec536f..6f1839f 100644 --- a/app/src/main/java/com/m2049r/xmrwallet/fragment/transaction/TransactionFragment.java +++ b/app/src/main/java/com/m2049r/xmrwallet/fragment/transaction/TransactionFragment.java @@ -94,11 +94,13 @@ public class TransactionFragment extends Fragment { TextView txAddressTextView = view.findViewById(R.id.transaction_address_textview); ImageButton copyTxAddressImageButton = view.findViewById(R.id.copy_txaddress_imagebutton); TextView txDateTextView = view.findViewById(R.id.transaction_date_textview); + TextView txAmountTextView = view.findViewById(R.id.transaction_amount_textview); mViewModel.transaction.observe(getViewLifecycleOwner(), transactionInfo -> { txHashTextView.setText(transactionInfo.hash); txConfTextView.setText(""+transactionInfo.confirmations); txDateTextView.setText(getDateTime(transactionInfo.timestamp)); + txAmountTextView.setText(getResources().getString(R.string.tx_amount_no_prefix, Helper.getDisplayAmount(transactionInfo.amount))); }); mViewModel.destination.observe(getViewLifecycleOwner(), s -> { diff --git a/app/src/main/res/layout/fragment_transaction.xml b/app/src/main/res/layout/fragment_transaction.xml index 847592f..deafa3f 100644 --- a/app/src/main/res/layout/fragment_transaction.xml +++ b/app/src/main/res/layout/fragment_transaction.xml @@ -86,6 +86,32 @@ app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toBottomOf="@id/transaction_conf_label_textview"/> + + + + + app:layout_constraintTop_toBottomOf="@id/transaction_amount_textview"/> My Monero Node 127.0.0.1:18081 Transaction + Amount + %1$s XMR 127.0.0.1 9050