Overlap other views on Camera Preview in android
<p>I'm following the Android developer's guide for the Camera API (Using v1 right now). I can't find a way to overlap a view (in my case an imagebutton/imageview on top of the preview). I'm using a frameLayout. Here's the layout code.</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="com.blackfruit.camfilters.CameraActivity"
    android:orientation="vertical"
 &gt;

 &lt;FrameLayout
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:id="@+id/cameraPreview"
     android:layout_weight="1"&gt;

  &lt;ImageView
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:id="@+id/imageView"
      android:src="@drawable/snap"
      android:layout_gravity="bottom|center"
      android:layout_marginBottom="20dp"
      /&gt;

 &lt;/FrameLayout&gt;
&lt;/RelativeLayout&gt;
</code></pre>

<p>I know there are other ways like for example using a surfaceview and linearlayout. But I'm figuring out the problem with this approach. I've seen people saying this works completely however mine doesn't meaning I just see the camera preview and not any buttons or image overlapping it.
Can anyone help me out?</p>