index.xml
<Alloy> <Window class="container"> <View id="pagerView"> <Module id="pager" module="net.bajawa.pager" method="createViewPager" platform="android"> <TableView id="pagerTable"></TableView> </View> </Window> </Alloy>index.js
var pagerModule = require("net.bajawa.pager"); var dummyTableData = (function () { var a = []; for (var i=0; i < 49; i++) a.push({ font:{fontFamily:'Arial', fontSize: '28', fontWeight:'bold'},title: "I am item " + i }); return a; }()); var pagerData = [ { title: "Dashboard", view: Ti.UI.createTableView({ data: dummyTableData }) }, { title: "Scheduler", view: Ti.UI.createTableView({ data: dummyTableData }) }, { title: "Messages", view: Ti.UI.createTableView({ data: dummyTableData }) }, { title: "History", view: Ti.UI.createTableView({ data: dummyTableData }) } ]; var tableData = [ { title: 'Pager Data', font:{fontFamily:'Arial', fontSize: '24', fontWeight:'bold'}, opts: { data: pagerData, tabs: { style: pagerModule.NORMAL } } } ]; $.pagerTable.setData(tableData); $.index.open();I'm working on using the Android Pager module as an interface for an alloy app. When I execute this code the only thing that displays is the title of the tableData object. The module isn't displaying. This is code taken from the demo app of the Android Pager module project. What I'm not doing here is adding the tableview to the window, however, I think that relationship is already made in the index.xml file. What could be the problem?