Ejemplo n.º 1
0
        {title: "2"}
    ]
});

var tabs = tabs.createPagerTabs({
    current: 4,
    tab: {
        indicatorResource: "holo_blue_light",
        colorResource: "holo_blue_light",
        backgroundColor: "white",
        alignment: tabs.ALIGNMENT_RIGHT
    },
    views: [
        {
            title: "Test1",
            view: text
        },
        {
            title: "Test2",
            view: text2
        },
        {
            title: "Test3",
            view: text3
        }
    ]
});

proxy.addEventListener(tabs.PAGE_SCROLLED_EVENT_NAME, function () {
    Ti.API.info("TAG: ", arguments.length, JSON.stringify(arguments));
});
Ejemplo n.º 2
0
var args = arguments[0] || {};
var tabs = require('com.navid.tabs');
var tabs = tabs.createPagerTabs({
    current: 0,
    tab: {
        indicatorColor      : Alloy.Globals.viewPager.indicatorColor,
        backgroundColor     : Alloy.Globals.viewPager.backgroundColor,
        alignment           : tabs.ALIGNMENT_LEFT,
        shouldExpand        : true,
        color               : Alloy.Globals.viewPager.color,
        upperCase           : Alloy.Globals.viewPager.upperCase
    },
    views: [
        {
            title: L("day1_caption"),
            view: Alloy.createController('day1').getView()
        },
        {
            title: L("day2_caption"),
            view: Alloy.createController('day2').getView()
        },
        {
            title: L("day3_caption"),
            view: Alloy.createController('day3').getView()
        }
    ]
});

$.schedule.add(tabs);