Android Application Development (AND-401) — Question 7
Which of the following is not a valid Android resource file name?
Answer options
- A. mylayout.xml
- B. myLayout.xml
- C. my_layout.xml
- D. mylayout1.xml
Correct answer: B
Explanation
In Android, resource file names must be in lowercase and can only include letters, numbers, and underscores. The name 'myLayout.xml' contains uppercase letters, which makes it invalid, while the other options adhere to the naming conventions.