0
Ich brauche diese bauen:Wie kann ich eine transparente Form mit farbigem Hintergrund
die weiße muss transparent sein
, wenn ich diese Form verwenden:
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle"
>
<size android:height="32dp"
android:width="16dp"/>
<solid android:color="@android:color/transparent"
/>
<corners android:topLeftRadius="16dp"
android:bottomLeftRadius="16dp"
/>
innerhalb von
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/yyy"
android:background="@color/colorPrimary"/>
ich ein blaues Rechteck (weil die Farbe unter der transparenten Form blau ist)
Wie kann ich die Form transparent zu bekommen, so dass ich die Farbe hinter dem Image sehen?
können Sie nicht regelmäßig png verwenden 'Bitmap'? – pskink
haha, ja !! das war so einfach, tnx –