Spotted a bug? Have a great idea? Help us make google.dev great! Submit feedback google.dev Return to playlist Which of the following statements is true about fragments/activities? The layout for an activity is a layout resource, while the layout for a fragment is a fragment resource. An activity has its own layout, but a fragment cannot have its own layout. An activity has its own lifecycle, but a fragment doesn't. When creating a fragment, you inflate the layout in the onCreateView() method. When creating an activity, you inflate the layout in onCreate(). Which of the following statements about fragments is true? You can use a fragment in more than one activity. One activity can only have one fragment. After you define a fragment in a Kotlin class, the fragment is automatically added to the activity_main.xml layout file. Use the createFragment() method in the onCreate() method to define a fragment. Submit answers error_outline An error occurred when grading the quiz. Try again later.