title: Combine Canvas and layout (Android)
body: <p>My question about Android UI. 
  When we work with XML-layout we write (for example)</p>
  
  <p><code>setContentView(R.layout.main);</code></p>
  
  <p>And when we work with 2d-graphics we write</p>
  
  <p><code>Draw2D d = new Draw2D(this); <br>
  setContentView(d);</code></p>
  
  <p>So what if I want to use both? I need to use layout-xml and a part of a screen is fir painting (Canvas). I read about surfaceView, but what about simple using Canvas?</p>