SubmitButton icon indicating copy to clipboard operation
SubmitButton copied to clipboard

Only animate when the button is marked as clickable

Open jamescoggan opened this issue 7 years ago • 1 comments

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

jamescoggan avatar Jan 25 '18 23:01 jamescoggan

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.

anisharya16 avatar Apr 16 '18 20:04 anisharya16