From b33bbc11fcc13755c6c8689b6023c54cd6f2ab02 Mon Sep 17 00:00:00 2001 From: dtvv Date: Fri, 12 Oct 2018 04:41:23 -0500 Subject: [PATCH] -Change the buttons style to the buttons to material one in the fragment_general_settings.xml and java source -Add the new buttons push animation to the buttons in the fragment_general_settings.xml and java source --- .../fragments/GeneralSettingsFragment.java | 15 +++++++++++++++ .../main/res/layout/fragment_general_settings.xml | 7 ++++--- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/cy/agorise/crystalwallet/fragments/GeneralSettingsFragment.java b/app/src/main/java/cy/agorise/crystalwallet/fragments/GeneralSettingsFragment.java index 47bb866..b4514ab 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/fragments/GeneralSettingsFragment.java +++ b/app/src/main/java/cy/agorise/crystalwallet/fragments/GeneralSettingsFragment.java @@ -15,10 +15,12 @@ import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; +import android.widget.Button; import android.widget.EditText; import android.widget.Spinner; import android.widget.TextView; +import com.thekhaeng.pushdownanim.PushDownAnim; import com.vincent.filepicker.Constant; import com.vincent.filepicker.activity.AudioPickActivity; import com.vincent.filepicker.filter.entity.AudioFile; @@ -71,6 +73,8 @@ public class GeneralSettingsFragment extends Fragment { Spinner spDisplayDateTime; @BindView (R.id.tvReceiveFundsSoundValue) TextView tvReceiveFundsSound; + @BindView (R.id.btnContact) + Button btnContact; public GeneralSettingsFragment() { this.spPreferredLanguageInitialized = false; @@ -99,6 +103,17 @@ public class GeneralSettingsFragment extends Fragment { View v = inflater.inflate(R.layout.fragment_general_settings, container, false); ButterKnife.bind(this, v); + /* + * Integration of library with button efects + * */ + PushDownAnim.setPushDownAnimTo(btnContact) + .setOnClickListener( new View.OnClickListener(){ + @Override + public void onClick( View view ){ + + } + } ); + generalSettingListViewModel = ViewModelProviders.of(this).get(GeneralSettingListViewModel.class); generalSettingListLiveData = generalSettingListViewModel.getGeneralSettingList(); diff --git a/app/src/main/res/layout/fragment_general_settings.xml b/app/src/main/res/layout/fragment_general_settings.xml index 02b73a4..4615c29 100644 --- a/app/src/main/res/layout/fragment_general_settings.xml +++ b/app/src/main/res/layout/fragment_general_settings.xml @@ -2,6 +2,7 @@ @@ -184,14 +185,14 @@ app:layout_constraintTop_toBottomOf="@id/tvCloseWalletTimer"/>