-Change the buttons style to the buttons to material one in the fragment_bitshares_settings.xml and java source

-Add the new buttons push animation to the buttons in the fragment_bitshares_settings.xml and java source
This commit is contained in:
dtvv 2018-10-12 04:34:17 -05:00
parent a64c5eff45
commit ad65111f92
2 changed files with 17 additions and 0 deletions

View file

@ -19,6 +19,7 @@ import android.widget.Spinner;
import android.widget.TextView; import android.widget.TextView;
import android.widget.Toast; import android.widget.Toast;
import com.thekhaeng.pushdownanim.PushDownAnim;
import com.vincent.filepicker.Constant; import com.vincent.filepicker.Constant;
import com.vincent.filepicker.activity.AudioPickActivity; import com.vincent.filepicker.activity.AudioPickActivity;
import com.vincent.filepicker.filter.entity.AudioFile; import com.vincent.filepicker.filter.entity.AudioFile;
@ -73,6 +74,9 @@ public class BitsharesSettingsFragment extends Fragment {
GrapheneAccountInfo grapheneAccountInfo; GrapheneAccountInfo grapheneAccountInfo;
GrapheneAccount grapheneAccount; GrapheneAccount grapheneAccount;
public BitsharesSettingsFragment() { public BitsharesSettingsFragment() {
if (getArguments() != null) { if (getArguments() != null) {
long cryptoNetAcountId = getArguments().getLong("CRYPTO_NET_ACCOUNT_ID", -1); 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); View v = inflater.inflate(R.layout.fragment_bitshares_settings, container, false);
ButterKnife.bind(this, v); 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(); initAlreadyLtm();
return v; return v;

View file

@ -26,7 +26,9 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
android:layout_marginEnd="32dp" android:layout_marginEnd="32dp"
android:textColor="@color/black"
android:text="Upgrade" android:text="Upgrade"
android:theme="@style/WhiteButton"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@+id/tvUpgradeToLtm" app:layout_constraintStart_toStartOf="@+id/tvUpgradeToLtm"
app:layout_constraintTop_toBottomOf="@id/tvUpgradeToLtm" /> app:layout_constraintTop_toBottomOf="@id/tvUpgradeToLtm" />