我有這樣的代碼:什麼原因導致此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