AndreaVitale / av.imageview

Titanium native ImageView module that extends the default Titanium ImageView with more capabilities and a different caching system.
MIT License
96 stars 29 forks source link

How can I add av.imageview into an ScrollableView? #84

Closed frodfigu closed 4 years ago

frodfigu commented 4 years ago

Hello, this module is awesome! Congratulations for your work.

I'm trying to add av.imageviews dinamically into my controller.js but I don´t know how can I do this with javascript code.

Any example?

m1ga commented 4 years ago
var img = require("av.imageview").createImageView({
    image: "image.jpg",
    width: 100,
    height: 100,
    contentMode: Alloy.Globals.CONTENT_MODE_FILL
})
$.scoller.add(img);