Difference between and in android

后端 未结 4 873
清歌不尽
清歌不尽 2021-01-03 22:26

What are the differences between <\\include> tag and <\\ViewStub> tag and which one is preferrable while designing the layout.

Thanks,
venu

4条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-03 23:00

    Another important difference is related to layout inflating. with it is not possible to change the layout already static inflated in XML, it is necessary to replace the view and set programmatically al the layout parameters. With it is possible to define (for e.g.) height, width, etc... and inflate different layout at runtime time

提交回复
热议问题