title: Can I create an xml file with one view without the containing layout
body: <p>I have a custom view called CustomImageView.</p>
  
  <p>I would like to create an xml file with this view so I inflate the view and add it programmatically to my current layout. (depending on orientation , I will decide where to add it)</p>
  
  <p>Is it possible to so something like this in the xml without a containing layout</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;CustomImageView
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:width="wrap_content"
      android:height="wrap_content"
      android:level="2"
      android:anotherattr="adsad" /&gt;
  </code></pre>
  
  <p>After that I will inflate it. or should I put it in a Layout like LinearLayout? I just want an xml with my view so I can inflate it and add to my existing layout.. I am not sure what the containing layout would be!</p>