Inflate() method can find out a layout defined by xml,as like the findViewById() method,but there have some different between them. The different are: If your Activity used other layout,such as the dialog layout,and you want to set the component's co…