Summary
In the contemporary idea of mobile devices, an application is the main way to let the user access our remote services and thus it should be the main means of obtaining them. Then, the way our users perceive our application is the fundamental way to succeed, and its user experience and user interface are the key indicators for that. Therefore, it's really important to be sure that there are no lags in our application rendering.
What we have done in this chapter is to understand how a device renders our applications, defining the 16 ms per frame target and overviewing hardware acceleration as the major performance rendering improvement in the Android system. Then we analyzed the main mistakes a developer can make while building an application UI, exploring in greater detail how to improve the rendering speed in our code by flattening the hierarchy view, reusing row views in listview
, and defining best practices for developing custom views and layouts. Finally, we walked through...