diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 6c23cf9..3e49c1f 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -25,6 +25,10 @@ android:name=".activities.SettingsActivity" android:label="@string/title_settings"> + + + + \ No newline at end of file diff --git a/app/src/main/java/cy/agorise/bitsybitshareswallet/activities/ReceiveTransactionActivity.kt b/app/src/main/java/cy/agorise/bitsybitshareswallet/activities/ReceiveTransactionActivity.kt new file mode 100644 index 0000000..40d651d --- /dev/null +++ b/app/src/main/java/cy/agorise/bitsybitshareswallet/activities/ReceiveTransactionActivity.kt @@ -0,0 +1,13 @@ +package cy.agorise.bitsybitshareswallet.activities + +import android.support.v7.app.AppCompatActivity +import android.os.Bundle +import cy.agorise.bitsybitshareswallet.R + +class ReceiveTransactionActivity : AppCompatActivity() { + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_receive_transaction) + } +} diff --git a/app/src/main/java/cy/agorise/bitsybitshareswallet/activities/SendTransactionActivity.kt b/app/src/main/java/cy/agorise/bitsybitshareswallet/activities/SendTransactionActivity.kt new file mode 100644 index 0000000..b8b12c0 --- /dev/null +++ b/app/src/main/java/cy/agorise/bitsybitshareswallet/activities/SendTransactionActivity.kt @@ -0,0 +1,13 @@ +package cy.agorise.bitsybitshareswallet.activities + +import android.support.v7.app.AppCompatActivity +import android.os.Bundle +import cy.agorise.bitsybitshareswallet.R + +class SendTransactionActivity : AppCompatActivity() { + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_send_transaction) + } +} diff --git a/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/BalancesFragment.kt b/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/BalancesFragment.kt index 45dc3bc..7d093b8 100644 --- a/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/BalancesFragment.kt +++ b/app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/BalancesFragment.kt @@ -1,6 +1,7 @@ package cy.agorise.bitsybitshareswallet.fragments import android.arch.lifecycle.ViewModelProviders +import android.content.Intent import android.os.Bundle import android.support.v4.app.Fragment import android.view.LayoutInflater @@ -8,7 +9,10 @@ import android.view.View import android.view.ViewGroup import cy.agorise.bitsybitshareswallet.R +import cy.agorise.bitsybitshareswallet.activities.ReceiveTransactionActivity +import cy.agorise.bitsybitshareswallet.activities.SendTransactionActivity import cy.agorise.bitsybitshareswallet.viewmodels.BalancesViewModel +import kotlinx.android.synthetic.main.fragment_balances.* class BalancesFragment : Fragment() { @@ -31,4 +35,18 @@ class BalancesFragment : Fragment() { // TODO: Use the ViewModel } + override fun onViewCreated(view: View, savedInstanceState: Bundle?) { + super.onViewCreated(view, savedInstanceState) + + btnReceive.setOnClickListener { + val intent = Intent(view.context, ReceiveTransactionActivity::class.java) + startActivity(intent) + } + + btnSend.setOnClickListener { + val intent = Intent(view.context, SendTransactionActivity::class.java) + startActivity(intent) + } + } + } diff --git a/app/src/main/res/layout/activity_receive_transaction.xml b/app/src/main/res/layout/activity_receive_transaction.xml new file mode 100644 index 0000000..9baac7b --- /dev/null +++ b/app/src/main/res/layout/activity_receive_transaction.xml @@ -0,0 +1,10 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_send_transaction.xml b/app/src/main/res/layout/activity_send_transaction.xml new file mode 100644 index 0000000..09f4e4c --- /dev/null +++ b/app/src/main/res/layout/activity_send_transaction.xml @@ -0,0 +1,10 @@ + + + + \ No newline at end of file