Quantcast
Viewing all articles
Browse latest Browse all 8068

using module viwt ListV?ew item template

I would like to know to is it possible or not? Because this is my third questions about this issue.

Template codes in index.js as below;

var _admobModule = require('ti.admob');
 
var admobTemplate = {
    childTemplates : [{
        type : '_admobModule.View',
        bindId : '_admob',
        properties : {
            top : 0,
            left : 0,
            width : 320,
            height : 50,
            publisherId :_________'publisherId_________',
            adBackgroundColor : 'black'
            }
    }],
    properties : {
        accessoryType : Ti.UI.LIST_ACCESSORY_TYPE_NONE,
        height : 320,
        width : '100%'
    }
};
Above code is not working on Android. But when i change type value to type : 'TiAdmob.View' and delete var _admobModule = require('ti.admob'); line it is working on iOS.

I have tried to implement instructions on this link http://noodlecode.net/tag/titanium-module/

But i did not get any results.

I am using admob module which is on this link https://github.com/appcelerator/titanium_modules/tree/master/admob

Also, you can suggest different approach or any other admob module which is better than current.

Please somebody help me. Thank you in advance.


Viewing all articles
Browse latest Browse all 8068

Trending Articles