Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
In this chapter, you created an Address Book app that enables users to add, view, edit and delete contact information that’s stored in a SQLite database. You learned that every Activity in an app must be described in the app’s AndroidManifest.xml file.
You defined common GUI component attribute–value pairs as XML style resources, then applied the styles to all components that share those values by using the components’ style attribute. You added a border to a TextView by specifying a Drawable as the value for the TextView’s android:background attribute and you created a custom Drawable using an XML representation of a shape.
You used XML menu resources to define the app’s MenuItems and programmatically inflated them using an Activity’s MenuInflater. You also used Android standard icons to enhance the visual appearance of the menu items.