Hello!

In the application for Layout background is set, on top I put an ImageView c png with a transparent background.

The result was a rectangular picture with a white background.

How to set the png transparency correctly?

 <ImageView android:id="@+id/imageView" android:src="@drawable/ic_hause" android:layout_gravity="center_horizontal" android:layout_weight="1" android:layout_width="fill_parent" android:layout_height="fill_parent" /> 
  • so what's the problem to make transparent ImageView, or the fact that you paint over it? - Shwarz Andrei

1 answer 1

try setting the android:background="@android:color/transparent" attribute android:background="@android:color/transparent"