Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Chris Stringer](https://secure.gravatar.com/avatar/71907f26c9ed4af475f15ffa51a9a038?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Chris Stringer
4,813 PointsCall animate method
I am missing something. It is asking me to call the method that animates them together. Isnt that the playSequentially that I have written down? Please help.
ObjectAnimator fadeInAnimator = ObjectAnimator.ofFloat(button, View.ALPHA, 0, 1);
fadeInAnimator.setDuration(1000);
ObjectAnimator moveUpAnimator = ObjectAnimator.ofInt(button, "top", buttonTop, 16);
moveUpAnimator.setDuration(1000);
ObjectAnimator scaleXAnimator = ObjectAnimator.ofFloat(button, "scaleX", 1.0f, 1.5f);
scaleXAnimator.setDuration(300);
ObjectAnimator scaleYAnimator = ObjectAnimator.ofFloat(button, "scaleY", 1.0f, 1.5f);
scaleYAnimator.setDuration(300);
// Add code below!
AnimatorSet animatorSet = new AnimatorSet();
animatorSet.playSequentially(fadeInAnimator, moveUpAnimator);
1 Answer
![Tal Yaron](https://secure.gravatar.com/avatar/f453dc62cb7cf1e9a1b6b88dcf1e9f88?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Tal Yaron
9,211 PointsHey Chris, there is another method called playTogether. playTogether plays the animations at the same time, while playSequentially plays them one after another.
AnimatorSet animatorSet = new AnimatorSet();
animatorSet.playSequentially(fadeInAnimator, moveUpAnimator);
to
AnimatorSet animatorSet = new AnimatorSet();
animatorSet.playTogether(fadeInAnimator, moveUpAnimator);
If you didn't understand please let me know.