© Ted Hagos 2020
T. HagosLearn Android Studio 4https://doi.org/10.1007/978-1-4842-5937-5_6

6. Activities and Layouts

Ted Hagos1 
(1)
Manila, National Capital Region, Philippines
 
What we’ll cover:
  • Overview of Android activities

  • Layout files

  • View objects

Most of the apps you will build will have a UI. In the previous chapter, we learned that to create a simple app with UI, we need (1) an Activity class, (2) a layout file for that Activity class, and (3) a manifest file. Thankfully, we get these three things from the project creation wizard.

In this chapter, we will examine the Activity component a lot closer. We will learn more about the constituent parts of an Activity, the Java class, and its related layout file.

Activity

The Activity component is responsible ...

Get Learn Android Studio 4: Efficient Java-Based Android Apps Development 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.