Which is an advantage of defining UI in XML?
- It runs faster than any other method
- It is the only way to create UI
- Separation of design from code and support for alternative layouts
- It needs no resources
Answer
C) Separation of design from code and support for alternative layouts
XML keeps layout separate and lets Android choose configuration-specific files.
Computer Science MCQ · More Action Bar and User Interface Design MCQs · Practise