title: Create View-Object from XML file in android
body: <p>I only want to get an object from a xml layout file without having to implement it into the current layout.</p>
  
  <p>I know the way with</p>
  
  <pre class="lang-java prettyprint-override"><code>LayoutInflater.from(context).inflate(R.layout.myfile, myparent, true);
  </code></pre>
  
  <p>but after execution of the above the layout will be implemented and shown immediately inside my "myparent"-View, right? I only want to get the Object itself to get its attributes and such. And maybe (but only maybe) insert it later into the shown layout.
  Is that possible?</p>
  
  <p>Regards</p>