Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if bz.os is 'android'
- bz.ui.navBar = (args) => # raname NavBar
- {windowObject, backgroundURL, leftButtonObject, rightButtonObject, logoImageURL, options} = args
- header = Titanium.UI.createView
- backgroundImage: backgroundURL
- height: '44dp'
- top: 0, left:0, right:0
- if logoImageURL?
- logoImage = Ti.UI.createImageView
- image: logoImageURL
- height:'44dp', width:'160dp'
- header.add logoImage
- header.add leftButtonObject if leftButtonObject?
- header.add rightButtonObject if rightButtonObject?
- windowObject.add header
- return header
- else
- bz.ui.navBar = (args) =>
- {windowObject, backgroundURL, leftButtonObject, rightButtonObject, logoImageURL, options} = args
- windowObject.barImage = backgroundURL if backgroundURL?
- windowObject.leftNavButton = leftButtonObject if leftButtonObject?
- windowObject.rightNavButton = rightButtonObject if rightButtonObject?
- windowObject.titleImage = logoImageURL if logoImageURL?
- return
Add Comment
Please, Sign In to add comment