Why should both portrait and landscape layouts use the same view IDs?
- Because IDs control colours
- To save memory
- It is required by Gradle
- So the same Kotlin/Java code (findViewById) works with either layout
Answer
D) So the same Kotlin/Java code (findViewById) works with either layout
Code references IDs; matching IDs avoid null views.
Computer Science MCQ · More Screen Components and Orientation MCQs · Practise