diff --git a/app/src/main/java/cy/agorise/bitsybitshareswallet/adapters/TransfersDetailsAdapter.kt b/app/src/main/java/cy/agorise/bitsybitshareswallet/adapters/TransfersDetailsAdapter.kt
index 08b6e6a..7a36e07 100644
--- a/app/src/main/java/cy/agorise/bitsybitshareswallet/adapters/TransfersDetailsAdapter.kt
+++ b/app/src/main/java/cy/agorise/bitsybitshareswallet/adapters/TransfersDetailsAdapter.kt
@@ -9,10 +9,12 @@ import android.widget.ImageView
import android.widget.LinearLayout
import android.widget.TextView
import androidx.constraintlayout.widget.ConstraintLayout
+import androidx.navigation.findNavController
import androidx.recyclerview.widget.RecyclerView
import androidx.recyclerview.widget.SortedList
import cy.agorise.bitsybitshareswallet.R
import cy.agorise.bitsybitshareswallet.database.joins.TransferDetail
+import cy.agorise.bitsybitshareswallet.fragments.TransactionsFragmentDirections
import cy.agorise.bitsybitshareswallet.utils.Constants
import java.math.RoundingMode
import java.text.DecimalFormat
@@ -133,6 +135,12 @@ class TransfersDetailsAdapter(private val context: Context) :
viewHolder.ivDirectionArrow.setImageDrawable(context.getDrawable(
if(transferDetail.direction) R.drawable.ic_arrow_receive else R.drawable.ic_arrow_send
))
+
+ viewHolder.rootView.setOnClickListener { v ->
+ val action = TransactionsFragmentDirections.EReceiptAction()
+// action.openCamera = true
+ v.findNavController().navigate(action)
+ }
}
fun add(transferDetail: TransferDetail) {
diff --git a/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/EReceiptFragment.kt b/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/EReceiptFragment.kt
new file mode 100644
index 0000000..7670b27
--- /dev/null
+++ b/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/EReceiptFragment.kt
@@ -0,0 +1,21 @@
+package cy.agorise.bitsybitshareswallet.fragments
+
+import android.os.Bundle
+import android.view.LayoutInflater
+import android.view.View
+import android.view.ViewGroup
+import androidx.fragment.app.Fragment
+import cy.agorise.bitsybitshareswallet.R
+
+class EReceiptFragment : Fragment() {
+
+ override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
+ setHasOptionsMenu(true)
+
+ return inflater.inflate(R.layout.fragment_e_receipt, container, false)
+ }
+
+ override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
+ super.onViewCreated(view, savedInstanceState)
+ }
+}
\ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_e_receipt.xml b/app/src/main/res/layout/fragment_e_receipt.xml
new file mode 100644
index 0000000..29d9f51
--- /dev/null
+++ b/app/src/main/res/layout/fragment_e_receipt.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/navigation/mobile_navigation.xml b/app/src/main/res/navigation/mobile_navigation.xml
index e5dd9d0..bf4396d 100644
--- a/app/src/main/res/navigation/mobile_navigation.xml
+++ b/app/src/main/res/navigation/mobile_navigation.xml
@@ -52,7 +52,28 @@
android:id="@+id/transactions_dest"
android:name="cy.agorise.bitsybitshareswallet.fragments.TransactionsFragment"
android:label="@string/title_transactions"
- tools:layout="@layout/fragment_transactions"/>
+ tools:layout="@layout/fragment_transactions">
+
+
+
+
+
+
+
+
+
+
+
Cantidad de activo
Equivalente fiat
+
+ Recibo electrónico
+
Comerciantes
Tellers
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 159a583..a4336a8 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -71,6 +71,9 @@
Asset Amount
Fiat Equivalent
+
+ eReceipt
+
Merchants
Tellers