diff --git a/app/src/main/java/cy/agorise/crystalwallet/fragments/BackupsSettingsFragment.java b/app/src/main/java/cy/agorise/crystalwallet/fragments/BackupsSettingsFragment.java index 0b57370..07be613 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/fragments/BackupsSettingsFragment.java +++ b/app/src/main/java/cy/agorise/crystalwallet/fragments/BackupsSettingsFragment.java @@ -23,6 +23,8 @@ import android.widget.Button; import android.widget.TextView; import android.widget.Toast; +import com.thekhaeng.pushdownanim.PushDownAnim; + import java.io.File; import java.text.DateFormat; import java.text.SimpleDateFormat; @@ -85,6 +87,25 @@ public class BackupsSettingsFragment extends Fragment{ View v = inflater.inflate(R.layout.fragment_backups_settings, container, false); ButterKnife.bind(this, v); + /* + * Integration of library with button efects + * */ + PushDownAnim.setPushDownAnimTo(btnBinFile) + .setOnClickListener( new View.OnClickListener(){ + @Override + public void onClick( View view ){ + makeBackupFile(); + } + + } ); + PushDownAnim.setPushDownAnimTo(btnBrainkey) + .setOnClickListener( new View.OnClickListener(){ + @Override + public void onClick( View view ){ + btnBrainOnClick(); + } + } ); + tvBinFile.setText(makeFirstWordsBold(getResources().getString(R.string.bin_file_description))); tvBrainkey.setText(makeFirstWordsBold(getResources().getString(R.string.brainkey_description))); tvWIFKey.setText(makeFirstWordsBold(getResources().getString(R.string.wif_key_description))); diff --git a/app/src/main/res/layout/fragment_backups_settings.xml b/app/src/main/res/layout/fragment_backups_settings.xml index 08cea7d..e251326 100644 --- a/app/src/main/res/layout/fragment_backups_settings.xml +++ b/app/src/main/res/layout/fragment_backups_settings.xml @@ -23,12 +23,10 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="16dp" - style="@style/Widget.Button" android:text="@string/create_a_backup" android:theme="@style/BlueButton" android:textStyle="bold" android:textColor="@color/white" - android:background="@color/colorPrimary" app:layout_constraintTop_toBottomOf="@id/tvBinFile" app:layout_constraintStart_toStartOf="@id/tvBinFile" /> @@ -45,11 +43,9 @@