Building User Interfaces and Using Controls
Thus far, we have covered the fundamentals of Android but have not touched the user interface (UI). In this chapter, we are going to discuss user interfaces and controls. We will begin by discussing the general philosophy of UI development in Android, and then we’ll describe many of the UI controls that ship with the Android SDK. These are the building blocks of the interfaces you’ll create. We will also discuss view adapters and layout managers. View adapters are used to provide data to the controls that show sets of data, whether those sets come from arrays, databases, or other data sources. As the name suggests, a layout manager governs where controls appear on the screen. Along the way, we’ll also cover styles and themes, which help to encapsulate control-appearance attributes for easier setup and maintenance.
KeywordsContent Provider Java Code Radio Button Custom Adapter Public Class
Unable to display preview. Download preview PDF.