ui/handheld/android/ ディレクトリにファイルがあります。その中で、以下のコードのように画像を呼び出しています
var var1 = Ti.UI.createImageView({
bottom: '150dp',
image: '/images/example.png',
width: '205.33dp'
})
しかし現れません。Resources/android/images/ に画像があります
ui/handheld/android/ ディレクトリにファイルがあります。その中で、以下のコードのように画像を呼び出しています
var var1 = Ti.UI.createImageView({
bottom: '150dp',
image: '/images/example.png',
width: '205.33dp'
})
しかし現れません。Resources/android/images/ に画像があります
それならそうあるべき
var var1 = Ti.UI.createImageView({
bottom: '150dp',
image: '/android/images/example.png',
width: '205.33dp'
})
ありがとう
私は問題を解決しました:
var var1 = Ti.UI.createImageView({
bottom: '150dp',
image: '/images/example.png', /* this is the RIGHT way */
width: '205.33dp'
})
私はいくつかの方法を試し、正しい方法を見つけました。ありがとうございます!