title: How to add button on camera Preview Frame in Android?
body: <p>I simply dragged and dropped the button on Camera Preview Frame but the button is not visible when I execute the app on the device, I do not see the button. Please help to resolve this issue. I wan to add a Flash button on the camera preview. Here is the XML code.
      <code>
       
       </p>
  
  <pre>  &lt;FrameLayout
        android:id="@+id/camera_preview"
        android:layout_width="fill_parent"
        android:layout_height="0dip"
        android:layout_weight="1.05" &gt;
  
        &lt;Button
            android:id="@+id/button1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/flash_button" /&gt;
  
    &lt;/FrameLayout&gt;
  
    &lt;Button
      android:id="@+id/button_capture"
      android:text="@string/capture_button"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_gravity="center"
      /&gt;
   &lt;/LinearLayout&gt;
  </code></pre>
  
  <p></p>