Lines Matching full:merge
4 <p>The <a href=""></a> articles showed you how to use the <code><include /></code> tag in XML layouts, to reuse and share your layout code. This article explains the <code><merge /></code> tag and how it complements the <code><include /></code> tag.</p>
6 <p>The <code><merge /></code> tag was created for the purpose of
59 <p>That's where the <code><merge /></code> tag comes in handy. When the
61 the <code><merge /></code> children to the <code><merge /></code>
63 <code>FrameLayout</code> with <code><merge /></code>:</p>
65 <pre class="prettyprint"><merge xmlns:android="http://schemas.android.com/apk/res/android">
87 </merge></pre>
94 <div style="text-align: center;"><img src="images/merge3.png" alt="Optimized view hierarchy using the merge tag"></div>
96 <p>Obviously, using <code><merge /></code> works in this case because the
99 as its root tag for instance. The <code><merge /></code> can be useful in
101 <code><include /></code> tag. You can also use <code><merge
109 <pre class="prettyprint"><merge
111 xmlns:okCancelBar="http://schemas.android.com/apk/res/com.example.android.merge">
120 <com.example.android.merge.OkCancelBar
133 </merge></pre>
137 <div style="text-align: center;"><img src="images/merge4.jpg" alt="Creating a custom view with the merge tag"></div>
169 use the <code><merge /></code> tag to add the two buttons directly to the
173 <pre class="prettyprint"><merge xmlns:android="http://schemas.android.com/apk/res/android">
181 </merge></pre>
188 <p>The <code><merge /></code> tag is extremely useful and can do wonders
192 <li><code><merge /></code> can only be used as the root tag of an XML layout</li>
193 <li>When inflating a layout starting with a <code><merge /></code>, you <strong>must</strong>