Which of the following best describes the use of the findViewById method?
A. To open a view on an activity’s layout
B. To get a reference to a widget on an activity’s layout
C. To find a widget in the Palette
D. To cast an object to a button
Answer:B
Which of the following best describes the use of the findViewById method?
A. To open a view on an activity’s layout B. To get a reference to a widget on an activity’s layout C. To find a widget in the Palette D. To cast an object to a button