Android hdpi资源加载问题
再会 我们正在为 Android 开发游戏,在高 dpi 设备上加载资源时遇到一些问题。
我们的资源位于 res/drawable 目录中 在标准 dpi 设备上,游戏可以正常工作,但在 hdpi 上(在 HTC Desire 上测试),位于 res/drawable-hdpi 加载中的所有资源均已正确加载,但在 drawable-hdpi 目录中缺失但存在于 res/drawable 中的资源被忽略
,但在具有 hdpi 的虚拟设备上一切正常。
有人遇到这个问题并知道如何解决吗?
good day
we are developing game for android and have some trouble with resource loading on high dpi devices.
our resources are located in res/drawable directory
on a standart dpi device the game work properly, but on hdpi (tested on HTC Desire) all resources which located in res/drawable-hdpi load are loaded correctly, but the resources which miss in drawable-hdpi directory but present in res/drawable are ignored
but everything works fine on the virtual device with hdpi.
does anybody encounter this problem and know how to solve it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
那么,从非设备测试人员的建议来看,如果这不与您的开发策略相冲突,您可以将那些缺失的资源移至drawable/nodpi吗?
不知道能达到什么程度,但是可以尝试一下!
Well from non device tester advice here, can You move those missing resources to drawable/nodpi if that does not conflicts your development strategy ?
Don't know to what extent it will work, but u can try!