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?''' private lateinit var textView: TextView override fun onCreateView(...): View? { val root = inflator.inflator(R>layout.fragment_home, container, false) textView = ?? return root }

🎲 Try a Random Question  |  Total Questions in Quiz: 50  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Android Quiz — practice the complete quiz, review flashcards, or try a random question.

MCQs For LinkedIn Skill Assessments.


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?<br>'''<br> private lateinit var textView: TextView<br> override fun onCreateView(...): View? {<br> val root = inflator.inflator(R>layout.fragment_home, container, false)<br> textView = ??<br> return root<br> }<br>