Android
AND-401 · Question #63
What Activity method you use to retrieve a reference to an Android view by using the id attribute of a resourceXML?
The correct answer is B. findViewById(int id). See the full explanation below for the reasoning.
Question
What Activity method you use to retrieve a reference to an Android view by using the id attribute of a resourceXML?
Options
- AfindViewByReference(int id);
- BfindViewById(int id)
- CretrieveResourceById(int id)
- DfindViewById(String id)
How the community answered
(64 responses)- A11% (7)
- B80% (51)
- C6% (4)
- D3% (2)
Community Discussion
No community discussion yet for this question.