我有一个问题,在 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"/>