O'Reilly logo

Android UI Design by Jessica Thornsby

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Identifying overdraw

When Android draws the screen, it starts with the highest-level container and then draws all the children and grandchildren on top of this parent view. This means that an individual pixel may be drawn more than once in a single cycle, in a process known as overdraw.

Coloring pixels that are only going to end up getting covered by subsequent views is a waste of processing power, and the more times you paint the screen, the more overdraw you're adding.

Overdraw is a particular problem for mobile devices such as Android, which have limited memory bandwidth to begin with and may struggle with GPU-intensive drawing tasks. By identifying and rectifying unnecessary or excessive overdraw, you'll increase your app's rendering speed. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required