Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building Android UIs with Custom Views

You're reading from   Building Android UIs with Custom Views Build amazing custom user interfaces with Android custom views

Arrow left icon
Product type Paperback
Published in Oct 2017
Publisher Packt
ISBN-13 9781785882869
Length 294 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Raimon Ràfols Montane Raimon Ràfols Montane
Author Profile Icon Raimon Ràfols Montane
Raimon Ràfols Montane
Arrow right icon
View More author details
Toc

Summary

In this chapter, we've seen how to add different types of animation to our custom views, from using the ValueAnimator and ObjectAnimator classes of the property animator system of Android, to creating our own animations using time-based animation or using a fixed time step mechanism.

Android provides us with even more animation classes, such as the AnimatorSet where we could combine several animations and specify which one plays before or after another.

As a recommendation, we shouldn't reinvent the wheel and, if it is enough, try to use what Android offers or maybe just extend it with our specific needs, but if it doesn't fit don't try to force it, as maybe building your own animation might be simple and easier to maintain.

As with everything when developing software, use common sense and choose the best option available.

In the next chapter, we&apos...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime