title: How to place UI widgets on top of multiple Z ordered Surface Views in Android
body: <p>I have 2 <code>SurfaceViews</code> and 1 <code>button</code> and they need to be arranged in a way similar to the attached screenshot. I was able to get <code>SurfaceView B</code> to be on top of <code>SurfaceView A</code> by calling <code>surfaceViewB.setZOrderOnTop(true);</code></p>
  
  <p>The problem is that, once I do that, <code>SurfaceView B</code> is placed above the actual Window and I'm no longer able to get the Button to be on top of it (eg. calling <code>button.bringToFront()</code> is useless here).</p>
  
  <p>Any idea how this layout could be accomplished?<img src="https://i.stack.imgur.com/IP19D.png" alt="enter image description here"></p>