Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Material Design Bottom Navigation Controller for Titanium Mobile

License

Notifications You must be signed in to change notification settings

deckameron/Ti.BottomNavigation

Repository files navigation

Ti.BottomNavigation

Material Design Bottom Navigation Controller for Appcelerator Titanium

Work in progress

I am still working on it. Feel free to add anything.

Usage

var BottomNavigation = require('/BottomNavigation');

var buttonsSpecs = [
	{
		title : 'First',
		activeIcon : '/images/ic_first_active.png',
		inactiveIcon : '/images/ic_first_inactive.png',
		backgroundRippeColor : '#009688',
	},
	{
		title : 'Second',
		activeIcon : '/images/ic_second_active.png',
		inactiveIcon : '/images/ic_second_inactive.png',
		backgroundRippeColor : '#3F51B5',
	},
	{
		title : 'Third',
		activeIcon : '/images/ic_third_active.png',
		inactiveIcon : '/images/ic_third_inactive.png',
		backgroundRippeColor : '#795548',
	}
]; 

var bottomNavigation = BottomNavigation.create({
	buttons : buttonsSpecs,
	activeTab : 1,
	activeFontColor : "#FFFFFF",
	backgroundColor : '#00796B',
	
        backgroundRipple : false,
        rippleColor : "#FFFFFF", //Only used when backgroundRipple = false
        
        hideInactiveButtonTitle : false,
        inactiveFontColor : "#99FFFFFF", //Only used when hideInactiveButtonTitle = false
        
        canExpandTabOnSelect : true
});
window.add(bottomNavigation);

bottomNavigation.addEventListener('click', function(e){
	Titanium.API.info(e.index);
});

alt tag

About

Material Design Bottom Navigation Controller for Titanium Mobile

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published