Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draggable.createView image #9

Open
justasSav opened this issue Nov 26, 2013 · 0 comments
Open

Draggable.createView image #9

justasSav opened this issue Nov 26, 2013 · 0 comments

Comments

@justasSav
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant