diff --git a/app/src/main/java/cy/agorise/crystalwallet/fragments/BitsharesSettingsFragment.java b/app/src/main/java/cy/agorise/crystalwallet/fragments/BitsharesSettingsFragment.java index 17c2ddc..7b26a41 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/fragments/BitsharesSettingsFragment.java +++ b/app/src/main/java/cy/agorise/crystalwallet/fragments/BitsharesSettingsFragment.java @@ -19,6 +19,7 @@ import android.widget.Spinner; import android.widget.TextView; import android.widget.Toast; +import com.thekhaeng.pushdownanim.PushDownAnim; import com.vincent.filepicker.Constant; import com.vincent.filepicker.activity.AudioPickActivity; import com.vincent.filepicker.filter.entity.AudioFile; @@ -73,6 +74,9 @@ public class BitsharesSettingsFragment extends Fragment { GrapheneAccountInfo grapheneAccountInfo; GrapheneAccount grapheneAccount; + + + public BitsharesSettingsFragment() { if (getArguments() != null) { long cryptoNetAcountId = getArguments().getLong("CRYPTO_NET_ACCOUNT_ID", -1); @@ -114,6 +118,17 @@ public class BitsharesSettingsFragment extends Fragment { View v = inflater.inflate(R.layout.fragment_bitshares_settings, container, false); ButterKnife.bind(this, v); + /* + * Integration of library with button efects + * */ + PushDownAnim.setPushDownAnimTo(btnUpgradeToLtm) + .setOnClickListener( new View.OnClickListener(){ + @Override + public void onClick( View view ){ + upgradeAccountToLtm(); + } + } ); + initAlreadyLtm(); return v; diff --git a/app/src/main/res/layout/fragment_bitshares_settings.xml b/app/src/main/res/layout/fragment_bitshares_settings.xml index 1c6606b..647d51e 100644 --- a/app/src/main/res/layout/fragment_bitshares_settings.xml +++ b/app/src/main/res/layout/fragment_bitshares_settings.xml @@ -26,7 +26,9 @@ android:layout_height="wrap_content" android:layout_marginTop="8dp" android:layout_marginEnd="32dp" + android:textColor="@color/black" android:text="Upgrade" + android:theme="@style/WhiteButton" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="@+id/tvUpgradeToLtm" app:layout_constraintTop_toBottomOf="@id/tvUpgradeToLtm" />