nerdexam
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)
  • A
    11% (7)
  • B
    80% (51)
  • C
    6% (4)
  • D
    3% (2)

Community Discussion

No community discussion yet for this question.

Full AND-401 Practice