0

我有一个问题,在 Galaxy S3 上,一些图像被黑色方块取代。在其他设备上它工作正常。一些想法可能导致这个问题?

在此处输入图像描述

编辑:一些代码:

final ImageView subscribe = (ImageView) view.findViewById(R.id.subscribe);
final boolean isSubscribed = isSubscribed();
subscribe.setImageResource(isSubscribed ? R.drawable.star_yellow : R.drawable.star_gray);

布局:

<ImageView
     android:id="@+id/subscribe"
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:layout_alignParentRight="true" 
     android:padding="20dip"
     android:src="@drawable/star_gray"/>
4

3 回答 3

0

我之前测试了一些GIF图像也遇到了同样的问题,只需改回PNG,就可以了。

如果图像已经是 PNG,也许可以重新编辑图像以防万一......

于 2012-12-13T01:37:27.193 回答
0

我将imageview更改为imagebutton,现在可以使用

于 2012-12-13T09:16:46.057 回答
-2

只需卸载然后安装应用程序,它的工作正常..

于 2020-10-19T07:28:41.163 回答