Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将图像设置为背景。我编辑 xml 布局文件。但是当我将图像放在可绘制文件夹上时,它会在项目名称上出现错误。问题是什么?跟图片大小有关系吗?android可以运行的图像最大尺寸是多少?
图像大小永远不会出错,大小的格式会出错..检查有效格式..
如果您上传大尺寸图片,它只显示从 Display.getWidth 到 Display.GetHeight 位置的一小部分。
可能您的图像名称不正确,资源项不能有数字、特殊字符(_ 很好)和大写字符。