<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical"
    android:layout_gravity="center"
    android:padding="10dp" >

    <ImageButton
        android:id="@+id/pressbutton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        android:background="@android:color/transparent"
        android:contentDescription="@string/pressme"
        android:src="@drawable/button" />

    <!-- setting this component's visibility to "invisible" just renders
         my device's (Galaxy Nexus) torch mode not to have any effect!
         so let's just "hack" it by setting width and height of 1dp -->
    <SurfaceView
        android:id="@+id/camerapreview"
        android:layout_width="1dp"
        android:layout_height="1dp"
        android:layout_centerInParent="true" />

</RelativeLayout>

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical"
    android:layout_gravity="center"
    android:padding="10dp"
    android:background="@android:color/black" >

    <ImageButton
        android:id="@+id/pressbutton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        android:background="@android:color/transparent"
        android:contentDescription="@string/pressme"
        android:src="@drawable/button" />

    <!-- setting this component's visibility to "invisible" just renders
         my device's (Galaxy Nexus) torch mode not to have any effect!
         so let's just "hack" it by setting width and height of 1dp -->
    <SurfaceView
        android:id="@+id/camerapreview"
        android:layout_width="1dp"
        android:layout_height="1dp"
        android:layout_centerInParent="true" />

</RelativeLayout>

Set background color to black.
Set background color to black.

Hiding artifact until I find better button images.