我有这样的代码:什么原因导致此PNG呈现不良?
<RelativeLayout
android:orientation="vertical"
android:layout_height="match_parent"
android:layout_width="398px"
android:layout_marginTop="35px"
android:layout_alignParentRight="true" >
....
<ImageView
android:layout_width="373px"
android:layout_height="222px"
android:layout_marginTop="35px"
android:src="@drawable/hairfall_text"
android:layout_below="@+id/pr_title" />
</RelativeLayout>
它使得这个图像显示这样的我的设备 上(P7500银河标签10.1要准确):
这是实际可绘制,因为它在我的资源文件夹中:
已经GOOGLE和相关的信息已经被使用,我已经调整了图像的像素格式为ARGB_8888(32位),同时设置活动的窗口pixelformat(getWindow().setFormat(PixelFormat.RGBA_8888);
)什么都不做。
我希望有人能够对此事阐明一些看法。非常感谢。
更新:我使用的解决方案是在资源增加没有dpi的文件夹,Android不缩放或调整摆在那里不过请注意,任何资源这是高度产生没有足够的内存错误 – lock 2012-04-23 01:22:40