diff --git a/app/src/main/java/cy/agorise/crystalwallet/fragments/AccountsSettingsFragment.java b/app/src/main/java/cy/agorise/crystalwallet/fragments/AccountsSettingsFragment.java index 5a84c0d..a28f5e6 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/fragments/AccountsSettingsFragment.java +++ b/app/src/main/java/cy/agorise/crystalwallet/fragments/AccountsSettingsFragment.java @@ -7,8 +7,11 @@ import android.text.SpannableStringBuilder; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; +import android.widget.Button; import android.widget.TextView; +import com.thekhaeng.pushdownanim.PushDownAnim; + import butterknife.BindView; import butterknife.ButterKnife; import cy.agorise.crystalwallet.R; @@ -41,6 +44,22 @@ public class AccountsSettingsFragment extends Fragment { @BindView(R.id.tvRemove) public TextView tvRemove; + @BindView(R.id.btnUpgrade) + public Button btnUpgrade; + + @BindView(R.id.btnImport) + public Button btnImport; + + @BindView(R.id.btnRefresh) + public Button btnRefresh; + + @BindView(R.id.btnRemove) + public Button btnRemove; + + + + + @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { @@ -53,6 +72,36 @@ public class AccountsSettingsFragment extends Fragment { tvRefresh.setText(makeFirstWordsBold(getResources().getString(R.string.refresh_description))); tvRemove.setText(makeFirstWordsBold(getResources().getString(R.string.remove_description))); + /* + * Integration of library with button efects + * */ + PushDownAnim.setPushDownAnimTo(btnUpgrade) + .setOnClickListener( new View.OnClickListener(){ + @Override + public void onClick( View view ){ + } + } ); + PushDownAnim.setPushDownAnimTo(btnImport) + .setOnClickListener( new View.OnClickListener(){ + @Override + public void onClick( View view ){ + } + } ); + PushDownAnim.setPushDownAnimTo(btnRefresh) + .setOnClickListener( new View.OnClickListener(){ + @Override + public void onClick( View view ){ + + } + } ); + PushDownAnim.setPushDownAnimTo(btnRemove) + .setOnClickListener( new View.OnClickListener(){ + @Override + public void onClick( View view ){ + } + } ); + + return v; } diff --git a/app/src/main/res/layout/fragment_accounts_settings.xml b/app/src/main/res/layout/fragment_accounts_settings.xml index 95fa2de..61e3f2b 100644 --- a/app/src/main/res/layout/fragment_accounts_settings.xml +++ b/app/src/main/res/layout/fragment_accounts_settings.xml @@ -33,7 +33,6 @@ android:theme="@style/BlueButton" android:textStyle="bold" android:textColor="@color/white" - android:background="@color/colorPrimary" app:layout_constraintTop_toBottomOf="@id/tvUpgrade" app:layout_constraintStart_toStartOf="@id/tvUpgrade" /> @@ -58,7 +57,6 @@ android:theme="@style/BlueButton" android:textStyle="bold" android:textColor="@color/white" - android:background="@color/colorPrimary" app:layout_constraintTop_toBottomOf="@id/tvImport" app:layout_constraintStart_toStartOf="@id/btnUpgrade" /> @@ -83,7 +81,6 @@ android:textStyle="bold" android:theme="@style/BlueButton" android:textColor="@color/white" - android:background="@color/colorPrimary" app:layout_constraintTop_toBottomOf="@id/tvRefresh" app:layout_constraintStart_toStartOf="@id/btnImport" /> @@ -104,7 +101,6 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="16dp" - android:background="@color/redColor" android:text="@string/remove" android:theme="@style/RedButton" android:textColor="@color/white"