Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试这个:
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); }
但它跳过了第一行动画。我怎样才能让它链接它们,所以它首先会做第一行,然后是下一行?
你可以试试这个
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);
正如文档中所建议的那样。