From 252b8a84a6ada7aacc4883df0fe9ced026951707 Mon Sep 17 00:00:00 2001 From: Severiano Jaramillo Date: Sun, 3 Dec 2017 23:18:53 -0600 Subject: [PATCH] Added enter and exit sendtransactionfragment animation --- .../fragments/SendTransactionFragment.java | 2 +- app/src/main/res/anim/send_transaction_in.xml | 12 +++++++ .../main/res/anim/send_transaction_out.xml | 33 +++++++++++++++++++ app/src/main/res/values/styles.xml | 9 +++++ 4 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 app/src/main/res/anim/send_transaction_in.xml create mode 100644 app/src/main/res/anim/send_transaction_out.xml diff --git a/app/src/main/java/cy/agorise/crystalwallet/fragments/SendTransactionFragment.java b/app/src/main/java/cy/agorise/crystalwallet/fragments/SendTransactionFragment.java index ee00954..503e05f 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/fragments/SendTransactionFragment.java +++ b/app/src/main/java/cy/agorise/crystalwallet/fragments/SendTransactionFragment.java @@ -93,7 +93,7 @@ public class SendTransactionFragment extends DialogFragment implements UIValidat @NonNull @Override public Dialog onCreateDialog(Bundle savedInstanceState) { - AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); + AlertDialog.Builder builder = new AlertDialog.Builder(getActivity(), R.style.SendTransactionTheme); builder.setTitle("Send"); LayoutInflater inflater = getActivity().getLayoutInflater(); diff --git a/app/src/main/res/anim/send_transaction_in.xml b/app/src/main/res/anim/send_transaction_in.xml new file mode 100644 index 0000000..2e7bc0b --- /dev/null +++ b/app/src/main/res/anim/send_transaction_in.xml @@ -0,0 +1,12 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/anim/send_transaction_out.xml b/app/src/main/res/anim/send_transaction_out.xml new file mode 100644 index 0000000..34514b8 --- /dev/null +++ b/app/src/main/res/anim/send_transaction_out.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 5d3c2f5..96d5480 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -54,4 +54,13 @@ + + + +