SubmitButton
SubmitButton copied to clipboard
Only animate when the button is marked as clickable
The button was animating even when marked as not clickable
Changes to conform to the View CLICKABLE
Reference: https://github.com/aosp-mirror/platform_frameworks_base/blob/master/core/java/android/view/View.java#L6144
Also raised in: https://github.com/SparkYuan/SubmitButton/issues/6
i want that whenever i click on the button, it animates for some duration(say 2 seconds) and then another activity is opened through intent. how can it be done? in the layout i added:
android:onClick="moveTo"
and in mainactivity:
public void moveTo(View view) { Intent intent = new Intent(this,login.class); startActivity(intent); }
whenever i click on the button, the new activity is opened instantly and animation is not seen by then.