0

ui/handheld/android/ ディレクトリにファイルがあります。その中で、以下のコードのように画像を呼び出しています

var var1 = Ti.UI.createImageView({
    bottom: '150dp',
    image: '/images/example.png',
    width: '205.33dp'
})

しかし現れません。Resources/android/images/ に画像があります

4

2 に答える 2

0

それならそうあるべき

var var1 = Ti.UI.createImageView({
    bottom: '150dp',
    image: '/android/images/example.png',
    width: '205.33dp'
})

ありがとう

于 2013-10-09T21:37:57.307 に答える
0

私は問題を解決しました:

var var1 = Ti.UI.createImageView({
  bottom: '150dp',
  image: '/images/example.png', /* this is the RIGHT way */
  width: '205.33dp'
})

私はいくつかの方法を試し、正しい方法を見つけました。ありがとうございます!

于 2013-10-10T19:32:01.373 に答える