What does findViewById return?

Tam ca

New member
What does findViewById return?
Answer
findViewById returns an instance of View , which is then cast to the target class. … The whole point is that when the layout is inflated, the view hierarchy already contains an instance of the view descendant class. findViewById simply returns a reference to it.
 

Tìm kiếm

Back
Top