Question: Given the fragment below, how would you get access to a TextView with an ID of text_home contained in the layout file of a Fragment class?
- root.getById(R.id.text_home)
- findViewByID(R.id.text_home)
- root.findViewById(R.id.text_home)
- root.find(R.id.text_home)
Answer: The correct answer of the above question is Option C:root.findViewById(R.id.text_home)