【问题标题】:Image loads in simulator but not on device (Titanium Studio Android)图像在模拟器中加载但不在设备上(Titanium Studio Android)
【发布时间】:2012-09-27 12:33:25
【问题描述】:

我是 Titanium Studio 的新手。我将所有图像(png 格式)放在 Resources 文件夹(Resources\Images)内的 Images 目录中。

当我通过使用下面给出的路径提及图像名称来设置 ImageView 的图像时,

var image = Ti.UI.createImageView({Image: 'Images/myimage.png', top: 20, height: 100, width: 100, left: 30});

我看到它在模拟器中运行良好,但在我的设备中却不行。当我在 Iphone Simulator 和 IPod touch 中测试相同的代码时,它运行良好。有谁能够帮助我。提前致谢。

【问题讨论】:

  • 查看名为“kitchensink”项目的示例,它将轻松回答您的问题。

标签: android ios imageview emulation titanium-mobile


【解决方案1】:

模拟器在文件名方面不区分大小写,但设备是 - 确保它与大小写无关。

【讨论】:

  • 好提示,今天这救了我!
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2010-12-23
  • 2011-05-05
  • 1970-01-01
  • 2015-06-11
  • 2013-07-08
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多