Which of the following methods do we use to get the root of the tree?

Options
- findViewById()
- getParentOfType()
- getRootView()
- getParent()


CORRECT ANSWER : getRootView()

Discussion Board
Explanation-

getRootView() method is used to get the root of the tree.
For example, what is provided to the activity via setContentView().

Sapna Ambadkar 03-9-2017 07:14 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement