210k views
0 votes
"Android question:

1. If you add a navigation view element to your activity, what
should your activity's root layout be?
Select one or more:
a. Drawer Layout
b. Relative Layout
c. Constraint Layout
d.absolute layout e. coordinator layout f. table layout

User Richvdh
by
7.4k points

1 Answer

6 votes

Final answer:

The root layout of an activity should be a Drawer Layout when a navigation view element is added.

Step-by-step explanation:

The root layout of an activity, when a navigation view element is added, should be a Drawer Layout.

A Drawer Layout is a container layout that allows you to have a sliding panel known as a navigation drawer. This is commonly used in Android apps for implementing a navigation menu or side menu.

By using a Drawer Layout as the root layout, you can easily add the navigation view element and define the behavior of the navigation drawer in your activity.

User Karol Kulbaka
by
8.7k points