OK I've gone through a few similar questions on SO and around the web,
to no avail. I'm just trying to overlay a transparent view on top of a
SurfaceView.. and eventually draw a rectangle on it, such that it
appears to overlay the camera preview.

I cannot get the custom view to be transparent, it blocks-out the
underlying camera preview (showing a black rectangle). Any
suggestions?

XML Layout code:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/
android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
    <FrameLayout
        android:layout_alignParentTop="true"
        android:layout_width="fill_parent"
        android:layout_height="400dip">
        <SurfaceView
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:id="@+id/drawSurface"  />
        <com.bobby.facecapture.FaceOverlayView
            android:id="@+id/drawOverlay"
            android:background="@android:color/transparent"
            android:layout_width="200dip"
            android:layout_height="200dip"
        />
    </FrameLayout>
</RelativeLayout>

The FaceOverlayView is just deriving from View.  I'm overriding onDraw
to draw some custom shapes, but tested without the overridden method
too, same effect).
Thanks for any help

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to