ui elements over canvas
<p>I have a MainView which only contains a bitmap and is create programmatically.</p>

<pre><code>setContentView(new MainView(this));
</code></pre>

<p>To this MainView I would like to add a layout I created in an xml (a few buttons). From what I see in the forums, people usually add a view to an xml. Can I do the opposite and is this the right approach or should I do it differently?</p>

<p>The overall goal is to have a background (the bitmap) which always stays in the same orientation and have the buttons change location on orientation change.</p>

<p>I have searched so many forums now but my problem is that I am not getting anywhere because I don't know what to search for.</p>
