私はアンドロイドアプリ用にImageViewで使用したい透明な色の白い画像を持っています。 You can check that the image has a transparency colorアンドロイドImageViewは透明度を表示しません
Iは (..描画可能-MDPI、描画可能-LDPI)フォルダのそれぞれに画像を追加し、画像とImageViewのを連結。 透明色を取得する代わりに、次のように白い色が表示されます The result 青い画面は、背景のあるRelativeLayoutです。 は、ここでXMLコードです:問題はあなたのイメージになりましたので
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/barre_puissance"
android:layout_toRightOf="@+id/barre_angle"
android:layout_marginLeft="10dp"
android:layout_marginBottom="10dp"
android:background="@drawable/bg_mr">
<ImageView
android:id="@+id/imageView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_mr_projectile"
android:layout_centerInParent="true"
/>
</RelativeLayout>
画像の右下に黄色の注意三角形があります。それはどこから来ていますか? –
「画像にcontentDescription属性がありません」というメッセージが表示されます – Mouley
レイアウト内のどのドロアブルにその三角形がありますか? –