resource images/about.png

screen root() {
image(“images/about.png”)
}

In Android programming you use R.drawable. instead of defining with “resource” as in mobl. What I want is named resources.

Could look like this:

resource images/about.png about

screen root() {
image(@about)
}

Submitted by Terje Pedersen on 6 April 2011 at 08:50

On 11 April 2011 at 16:13 Zef Hemel commented:

You can already do this:

var aboutImage = $data(images/about.png); // a string containing the base64 encoded image
...
image(aboutImage)

On 11 April 2011 at 16:13 Zef Hemel closed this issue.

Log in to post comments