What does it mean to inflate a view from an xml file?

前端 未结 6 1755
情书的邮戳
情书的邮戳 2020-11-28 17:35

I am new to android development and keep coming across references to Inflating views from a layout xml file. I googled and searched the development guide but still wasn\'t

6条回答
  •  臣服心动
    2020-11-28 17:58

    Because we make UI into XML but view objects is what we display so we somehow need to convert xml into view objects so inflating means we are converting xml into view objects so that it can be displayed, for this we need a service called layout inflator service and give it an xml and it will be convert for you.

提交回复
热议问题