title: Include layout with custom attributes
body: <p>I'm building a complex layout and I want to use <code>include</code> tag for my custom component, like this:</p>
  <pre><code>&lt;include layout=&quot;@layout/topbar&quot;/&gt;
  </code></pre>
  <p>The <code>topbar</code> layout has custom root component and in layout xml file it's defined like this:</p>
  <pre><code>&lt;my.package.TopBarLayout
   ... a lot of code
  </code></pre>
  <p>Now, I wanna pass my custom defined attributes to &quot;topbar&quot; like this:</p>
  <pre><code>&lt;include layout=&quot;@layout/topbar&quot; txt:trName=&quot;@string/contacts&quot;/&gt;
  </code></pre>
  <p>And then get the value of those custom attributes in custom component code or ideally in xml.</p>
  <p>Sadly, I cannot get value of <code>txt:trName</code> attribute to make it to the <code>topbar</code> layout, I just don't receive anything in code. If I understand correctly from <a href="http://developer.android.com/guide/topics/resources/layout-resource.html" rel="noreferrer">that documentation page</a>, I can set no attributes for layouts used via <code>include</code>, but <code>id</code>, <code>height</code> and <code>width</code>.</p>
  <p>So my question is how can I pass my custom defined attributes to layout which is added via <code>include</code>?</p>