Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
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

Performance Considerations

In the previous chapters, we have been talking briefly about performance and, for example, avoiding doing some operations using the onDraw() method. But we haven't covered in detail why you should follow these recommendations and what the real impact of not following these best practices is to the custom view and to the application using it. Many of the things we will explain here might seem common sense, and indeed they should be, but sometimes we might not think about them, or we may not know or be aware of the real impact that it might have on the application, both from a performance point of view and regarding battery consumption.

In this chapter, we will address these points and we will look at the following topics in more detail:

  • Recommendations and best practices
  • The impact on the app when performance is not taken into account
  • Code optimizations...
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
Banner background image