I am trying to do this:
public void onClick(View view){ tv.animate().x(600).y(100).scaleX(3).scaleY(3); tv.animate().x(400).y(1400).scaleX(1).scaleY(1); }
but it skips the first line of the animation. How can I get him to bind them, so first he will do the first line and then the next?
You can try this
Runnable endAction = new Runnable() { public void run() { tv.animate().x(400).y(1400).scaleX(1).scaleY(1); } }; tv.animate().x(600).y(100).scaleX(3).scaleY(3).withEndAction(endAction);
as indicated in the documentation.
Source: https://habr.com/ru/post/950425/More articles:Python - making file copies - pythonReliable cross-platform directory moving method - rHow to get the IP address used by Parallels VM from the host? - parallelsWhy std :: vector :: insert invalidates all iterators after the insertion point - c ++How to remove all characters from a string except digits, "," and ".". using Ruby? - stringFileWriter vs BufferedWriter - javaHow to convert legacy SoapService call to new UrlFetchApp - google-apps-scriptEclipse Kepler CDT includes external header files / recursively adds External Include Path (with subfolders) - eclipse-cdtMySQL DATE_FORMAT '% M' in a short month? - mysqlCapturing yourself in a block (hold cycles) is not always the case? - objective-cAll Articles