m1ga/ti.dfp

bannerview in a listView

arifje opened this issue · 3 comments

Hi Jason, we're trying to implement a bannerview in a listView. Do you think this is possible?

We've tried to add it to the header/footerview, but this view won't accept Ti.UI.SIZE for example. Best scenario would be if we could add it between the listView items, on position X.

Any ideas are welcome :-)

Sorry - I haven't ever tried that. I have put it into a tableview, though.

Yeah that works, but we all work with listViews now because of performance, and if we could implement the bannerView in it, that would we great. Can't find any solution to this :-(

Hi, I don't know if you found the answer @skoften, but you can do it by adding a global variable in your alloy.js that holds a reference to ti.dfp, like DFP = require('ti.dfp'). Then in you xml, you can do something like . Unfortunately, as it is now ti.dfp crashes when put in Listview.