title: How can I programmatically include layout in Android?
body: <p>I'm looking for a way to include a layout programmatically instead of using the XML tag  <code>include</code> like in my example:</p>
  
  <pre><code>  &lt;include layout="@layout/message"  
             android:layout_width="match_parent" 
             android:layout_height="match_parent" 
             android:layout_weight="0.75"/&gt;
  </code></pre>
  
  <p>Need to change this parameter "<strong>layout="@layout/message</strong>" programmatically, please. </p>
  
  <p>Any idea how to do this?</p>