2.1 Introduction

In this chapter, you’ll build the Welcome app that displays a welcome message and an image. You’ll use Android Studio to create a simple app (Fig. 2.1) that runs on Android phones and tablets in both portrait and landscape orientations:

Fig. 2.1 Welcome app running in the Android emulator

The Welcome app in android emulator.
  • In portrait the device’s height is greater than its width.

  • In landscape the width is greater than the height.

You’ll use Android Studio’s layout editor to build the GUI using drag-and-drop techniques. You’ll also edit the GUI’s XML directly. You’ll execute your app in the Android emulator and on an Android device, ...

Get Android How to Program, 3/e 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.