Android
OA0-002 · Question #112
What Activity method you use to retrieve a reference to an Android view by using the id attribute of a resource XML?
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 resource XML?
Options
- AfindViewByReference(int id);
- BfindViewById(int id)
- CretrieveResourceById(int id)
- DfindViewById(String id)
How the community answered
(26 responses)- A8% (2)
- B73% (19)
- C4% (1)
- D15% (4)
Community Discussion
No community discussion yet for this question.