What is inflate method in Android?

What is inflate method in Android?
Answer
Instantiates a
layout XML file
into its corresponding View objects. It is never used directly. Instead, use Activity. … For performance reasons, view inflation relies heavily on pre-processing of XML files that is done at build time.
 

Tìm kiếm

Back
Top