What is the return type of the function findViewById int id?

Huỳnh Hiền

New member
What is the return type of the function findViewById int id?
Answer
The method findViewById() returns an instance of the class that is actually used to define that view in your XML file. The method signature returns a View to make it generic and usable for all classes that inherit for View .
 

Tìm kiếm

Back
Top