你好,我建一个小部件,它包含的标题和内容分隔 也只是像往常一样,我进口我的图像被拉伸的文件夹错误:无法处理PNG图像的Android
一个imageview的我宣布我的窗口小部件的XML图像布局是这样的:
<ImageView
android:id="@+id/img_widget"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dip"
android:layout_marginBottom="10dip"
android:gravity="center_vertical|center_horizontal"
android:src="@drawable/divider"/>
它在我的文件夹绘制 divider.9.png所以,当我开始编译这个事实证明错误 不是在xml文件,但在图像本身
当我看着控制台它说:
ERROR: Failure processing PNG image /home/drikvi/workspace/AnimList/res/drawable-hdpi/divider.9.png
[2011-06-23 15:18:59 - AnimList] W/ResourceType(2305): Bad XML block: header size 2433 or total size 0 is larger than data size 0
[2011-06-23 15:18:59 - AnimList] W/ResourceType(2305): Bad XML block: header size 2433 or total size 0 is larger than data size 0
我真的不知道这个吗?
任何解决方案?
好吧,我已经修补过它...我会试试:) – user724861
好吧,试试我的建议。如果它起作用,那么9贴片格式就有问题。如果仍然失败,那么你的png格式有问题。 –
好吧,它的作品!但我仍然需要9个补丁图像...嗯...好吧,我会重新发布它,谢谢! – user724861