摘要:
This chapter explores details about important part of the application development process: user interfaces (UIs). Layouts define the structure for a UI in Android applications and app widgets. UI elements in Android are configured using XML tags and attributes. The Android operating system renders the UI using the XML file and Java code to draw the UI elements to Android devices. Common terms used in Android UI development are layout, view, and widgets. View is the base class of UI elements. Widgets are derived from the View class and they become a ready-to-use UI element such as images, texts, text inputs, drop-down boxes, and so on. Layouts are the containers for views and widgets; they are group of views. The Preview window helps designers see the changes applied to a layout instantly without launching the application.
展开