Which wizard option creates a fragment class and its layout together?
- New → Service
- New → Fragment → Fragment (Blank)
- New → Activity → Basic
- New → Module
Answer
B) New → Fragment → Fragment (Blank)
The Fragment (Blank) template creates both the class and the layout.
Computer Science MCQ · More Lab: Bottom Navigation with Fragments MCQs · Practise