我想在Visual Studio 2012的Xamarin插件中使用ImageView,但是當我使用像src這樣的透明背景的png時,我只能看到黑色屏幕。 這很奇怪,但前段時間我可以做到,但現在我不能。 Visual Studio中的照片查看器顯示我的圖像只是黑色。 當我在設備上運行我的應用時,我也會看到黑屏。 這裏是XML:ImageView不顯示一些圖像
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:minWidth="25px"
android:minHeight="25px">
<ImageView
android:src="@drawable/plus"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/imageView1" />
</LinearLayout>
以前,我沒有這個問題,我想......
如果我使用的ImageButton相同的圖像,當我使用的圖像沒有透明背景的一切OK! 重命名文件夾Drawable沒有幫助。
我該如何解決這個問題?
你能提供有問題的圖像的鏈接?我可以嘗試在我身邊... –
@ÜberLem好的,謝謝! https://drive.google.com/file/d/0B4jsXYhk52gaRGpHRnZrNl85SWc/view?usp=sharing –