Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
This chapter introduced the common Android views and layout containers, along with the attributes used to display them. You also started building a basic time-tracking app. Along the way, you learned that
• Android provides many basic form widgets for building your UI.
• There are several layout container types, and they each have specific situations in which you should use them.
• Any updates to your app UI must take place on the UI thread.
• You can use a ListView to display lists of data to your users, and you can bind data to that ListView by using a ListAdapter.
• Understanding the activity life cycle is fundamental to building a responsive app.
• You can use StrictMode to prevent Application Not Responding (ANR) errors.