pec1985 / TiDraggable

Native iOS and Android modules for Appcelerator's Titanium Mobile
74 stars 75 forks source link

Draggable.createView image #9

Open justasSav opened 10 years ago

justasSav commented 10 years ago

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