From 19f032699efc3d290030a676c0982a61b7f7b6e6 Mon Sep 17 00:00:00 2001 From: pokkst Date: Mon, 21 Nov 2022 20:36:13 -0600 Subject: [PATCH] Add ReceiveFragment --- .../fragment/receive/ReceiveFragment.java | 52 +++++++++++++++++++ .../fragment/receive/ReceiveViewModel.java | 7 +++ 2 files changed, 59 insertions(+) create mode 100644 app/src/main/java/net/mynero/wallet/fragment/receive/ReceiveFragment.java create mode 100644 app/src/main/java/net/mynero/wallet/fragment/receive/ReceiveViewModel.java diff --git a/app/src/main/java/net/mynero/wallet/fragment/receive/ReceiveFragment.java b/app/src/main/java/net/mynero/wallet/fragment/receive/ReceiveFragment.java new file mode 100644 index 0000000..49d00a2 --- /dev/null +++ b/app/src/main/java/net/mynero/wallet/fragment/receive/ReceiveFragment.java @@ -0,0 +1,52 @@ +package net.mynero.wallet.fragment.receive; + +import android.os.Bundle; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.Button; + +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.fragment.app.Fragment; +import androidx.lifecycle.ViewModelProvider; +import androidx.recyclerview.widget.LinearLayoutManager; +import androidx.recyclerview.widget.RecyclerView; + +import net.mynero.wallet.R; +import net.mynero.wallet.adapter.CoinsInfoAdapter; +import net.mynero.wallet.fragment.dialog.SendBottomSheetDialog; +import net.mynero.wallet.model.CoinsInfo; +import net.mynero.wallet.service.AddressService; +import net.mynero.wallet.service.UTXOService; +import net.mynero.wallet.util.UriData; + +import java.util.ArrayList; +import java.util.Collections; + +public class ReceiveFragment extends Fragment { + + private ReceiveViewModel mViewModel; + + @Override + public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, + @Nullable Bundle savedInstanceState) { + return inflater.inflate(R.layout.receive_bottom_sheet_dialog, container, false); + } + + @Override + public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) { + super.onViewCreated(view, savedInstanceState); + mViewModel = new ViewModelProvider(this).get(ReceiveViewModel.class); + bindListeners(view); + bindObservers(view); + } + + private void bindListeners(View view) { + + } + + private void bindObservers(View view) { + + } +} \ No newline at end of file diff --git a/app/src/main/java/net/mynero/wallet/fragment/receive/ReceiveViewModel.java b/app/src/main/java/net/mynero/wallet/fragment/receive/ReceiveViewModel.java new file mode 100644 index 0000000..5b75838 --- /dev/null +++ b/app/src/main/java/net/mynero/wallet/fragment/receive/ReceiveViewModel.java @@ -0,0 +1,7 @@ +package net.mynero.wallet.fragment.receive; + +import androidx.lifecycle.ViewModel; + +public class ReceiveViewModel extends ViewModel { + +} \ No newline at end of file