Final answer:
To create multiple pages in Android Studio, you need to create multiple activities, each representing a different page. You do this by creating new activities through right-clicking the 'app' folder, and using intents to navigate between them.
Step-by-step explanation:
To create multiple pages in Android Studio, you essentially need to create multiple activities, each representing a page. For every new page, follow these steps:
- Right-click on the 'app' folder in Project View.
- Go to 'New' > 'Activity' and choose the type of activity you wish to create, such as 'Empty Activity'.
- Enter a name for your new activity and click 'Finish'.
- Android Studio will generate the activity file (.java or .kt) and a corresponding layout file in the 'res/layout' folder.
- Customize the UI of your new page by editing the XML layout file.
- To navigate between activities, use intents. For example, to move from the MainActivity to SecondActivity:
Intent intent = new Intent(MainActivity.this, SecondActivity.class);
startActivity(intent);
This will start your SecondActivity, which represents the second page. Repeat these steps for additional pages you want to add to your Android app.