What is the purpose of Android’s tag in XML layouts?
<merge/> is useful because it can get rid of unneeded ViewGroups, i.e. layouts that are simply used to wrap other views and serve no purpose themselves. For example, if you were to <include/> a layout from another file without using merge, the two files might look something like this: layout1.xml: <FrameLayout> <include layout=”@layout/layout2″/> </FrameLayout> layout2.xml: … Read more