Chapter 2: Using Views to Design the User Interface

In the previous chapter, you learned about some of the fundamental concepts in Android programming. This chapter takes a look at the various views that you can use to design the user interface for your applications. In particular, you will learn about the following views:

  • Button, ToggleButton, ImageButton, and RadioButton
  • CheckBox
  • WebView
  • DatePicker and TimePicker

You will also learn about the various ways to lay out your views using ViewGroups. In particular, you will learn about the following ViewGroups:

  • LinearLayout
  • RelativeLayout
  • FrameLayout
  • TableLayout
  • ScrollView

Finally, this chapter demonstrates how to display context and options menus, as well as how to display dialogs and implement page swiping.

Get Android Application Development Cookbook: 93 Recipes for Building Winning Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.