title: Inflate a linear layout from R.id and not R.layout
body: <p>I'm going nuts here. I have a layout for a fragment. Inside I have among other things a LinearLayout with an id, say for example myLinearLayout. Basically, I want to do the following:</p>
  
  <pre><code>LinearLayout newLayout = new LinearLayout(this);
  LinearLayout layoutCopy = inflatefrom(R.id.myLinearLayout);
  newLayout.addView(layoutCopy);
  </code></pre>
  
  <p>How can I do this?</p>