Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid Layout: cannot see the children over the parent
    text
    copied!<p>I have the Layouts as you can see in the picture (sorry I cannot post them normally yet): <a href="https://dl.dropboxusercontent.com/u/28640502/Unbenannt.bmp" rel="nofollow noreferrer">https://dl.dropboxusercontent.com/u/28640502/Unbenannt.bmp</a></p> <p>However, when I execute the app I can only see the camera preview and not the text nor the SeekBar. I know they work, because when I reduce the size of the camera I can see them and interact, but if I want the camera to be like background and then the children over it, it doesn't work.</p> <p>I have been checking a lot of threads with similar problems but I don't find the solution: <a href="https://stackoverflow.com/questions/6759279/how-to-bring-view-on-front-of-everything">1</a>, <a href="https://stackoverflow.com/questions/5380374/android-how-to-make-a-child-view-overlap-the-parent">2</a>, <a href="https://stackoverflow.com/questions/6759036/how-to-send-view-to-back-how-to-control-the-z-order-programmatically">3</a>... Any idea? Thanks a lot!</p> <p>Here is my xml code just in case: </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="0.55" android:orientation="vertical" &gt; &lt;FrameLayout android:id="@+id/camera_preview" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="fill"&gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" &gt; &lt;TextView android:id="@+id/show_height" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="5sp" android:layout_marginRight="10sp" android:layout_weight="0.12" android:text="H" /&gt; &lt;SeekBar android:id="@+id/select_height" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_gravity="bottom" android:layout_margin="5sp" android:layout_weight="0.91" /&gt; &lt;TextView android:id="@+id/show_distance" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="0.06" android:text="Dist" /&gt; &lt;/LinearLayout&gt; &lt;/FrameLayout&gt; &lt;/LinearLayout&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload