0
Was im Versuch zu tun ist, erstellen Sie eine Kamera Vorschau in der Oberflächenansicht und fügen Sie Schaltflächen darüber.Entfernen Overlay Hintergrund in der Kameraansicht
Ich bekomme eine Kamera Vorschau, aber leider Linearlayout
hat einen hässlichen weißen Hintergrund.
Wie kann es transparent sein?
Ich habe sogar versucht #00ffffff
aber funktionierte nicht
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<SurfaceView android:id="@+id/surfaceView1" android:layout_width="wrap_content" android:layout_height="wrap_content"></SurfaceView>
<LinearLayout android:id="@+id/linearLayout1" android:layout_width="wrap_content" android:layout_height="wrap_content">
<Button android:text="Button" android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
<Button android:text="Button" android:id="@+id/button2" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
</LinearLayout>
</FrameLayout>