Skip to content

Draggable.createView image #9

@justasSav

Description

@justasSav

a. Passed image attribute like this:

var free = Draggable.createView({
    image:'default.png', //absolute path?
        top:0,
        left:0,
        width:100,
        height:100
});

Doesn't work. Console shows error 'INVALID URI'. Draggable is not visible.

b. Creating imageView like this works.

    var image = Ti.UI.createImageView({
      image:'default.png',
      width: '100px',
      height: '100px',
      top: '100px'
    });

c. Tried adding image to free:

free.add(image); //compiles but image not shown

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions