What Activity method you use to retrieve a reference to an Android view by using the id attribute of a resource XML?

What Activity method you use to retrieve a reference to an Android view by using the id attribute of a resource XML?
A . findViewByReference(int id);
B . findViewById(int id)
C . retrieveResourceById(int id)
D . findViewById(String id)

Answer: B

Explanation:

The findViewById(int id) method looks for a child view with the given id.

References: http://developer.android.com/reference/android/view/View.html

Latest AND-401 Dumps Valid Version with 228 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments