• Home
  • Raw
  • Download

Lines Matching refs:merge

5 reuse and share your layout code. This article explains the <code>&lt;merge /&gt;</code> tag and how
8 <p>The <code>&lt;merge /&gt;</code> tag was created for the purpose of
61 <p>That's where the <code>&lt;merge /&gt;</code> tag comes in handy. When the
63 the <code>&lt;merge /&gt;</code> children to the <code>&lt;merge /&gt;</code>
65 <code>FrameLayout</code> with <code>&lt;merge /&gt;</code>:</p>
67 <pre class="prettyprint">&lt;merge xmlns:android="http://schemas.android.com/apk/res/android"&gt;
89 &lt;/merge&gt;</pre>
96 …gn: center;"><img src="images/merge3.png" alt="Optimized view hierarchy using the merge tag"></div>
98 <p>Obviously, using <code>&lt;merge /&gt;</code> works in this case because the
101 as its root tag for instance. The <code>&lt;merge /&gt;</code> can be useful in
103 <code>&lt;include /&gt;</code> tag. You can also use <code>&lt;merge
111 <pre class="prettyprint">&lt;merge
113 xmlns:okCancelBar="http://schemas.android.com/apk/res/com.example.android.merge"&gt;
122 &lt;com.example.android.merge.OkCancelBar
135 &lt;/merge&gt;</pre>
139 …align: center;"><img src="images/merge4.jpg" alt="Creating a custom view with the merge tag"></div>
171 use the <code>&lt;merge /&gt;</code> tag to add the two buttons directly to the
175 <pre class="prettyprint">&lt;merge xmlns:android="http://schemas.android.com/apk/res/android"&gt;
183 &lt;/merge&gt;</pre>
190 <p>The <code>&lt;merge /&gt;</code> tag is extremely useful and can do wonders
194 <li><code>&lt;merge /&gt;</code> can only be used as the root tag of an XML layout</li>
195 <li>When inflating a layout starting with a <code>&lt;merge /&gt;</code>, you <strong>must</strong>