Examveda

Where do you set the ID of a fragment to be used in navigation?

A. In the fragment layout file, either by setting the ID attribute in the design editor or in the layout XML file in the res > layout folder.

B. In the project navigation file, either by setting the ID attribute in the navigation graph or in the navigation.xml file in the res > navigation folder.

C. You need to set the ID in both the navigation file for the app and the layout file for the fragment.

D. Set the ID variable in the relevant Fragment class.

Answer: Option B


This Question Belongs to Computer Science >> Kotlin Program

Join The Discussion

Related Questions on Kotlin Program

What is Kotlin?

A. A new version of Java.

B. A JavaScript framework.

C. A statically-typed programming language for the JVM, Android, and browser.

D. A database management system.