set Form-hintergrund auf transparent in android

Ich habe ein shape drawable, das möchte ich als hintergrund verwenden. Ich will, dass die Form transparent sein. Aber so weit ist es nicht. Wie mache ich das? Hier ist, was ich habe:

<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:padding="10dp"
    android:shape="rectangle" >

    <solid android:color="#80000000" />

    <stroke
        android:width="1dip"
        android:color="#000000" />

    <corners android:radius="10dp" />

</shape>

Ich erwartet, dass die Linie <solid android:color="#80000000" /> um den trick zu tun.

EDIT:

Im manifest, ich android:theme="@android:style/Theme.Dialog". Könnte sein, dass die Ursache des Problems? Ich bin im Grunde versucht, um diese Sicht auf den anderen. Ändern auf 00 oder FF oder was sonst noch nicht funktioniert.

  • Wollen Sie den alpha-Wert auf 80? Ist das so gewollt? Oder wolltest du es haben keine Deckkraft, 00?
  • bitte fügen Sie den code, wo Sie den hintergrund anzeigen.
InformationsquelleAutor Cote Mounyo | 2013-07-03
Schreibe einen Kommentar