More than one right nav bar button?
Can you have more than one right nav button? I'm adding a thing thats going to have an add or import, and would like to have it in the navbar.
2 Answers
-
Try this below code, I am not much sure about result
var holder = Ti.UI.createView({ width:150, height:42 }); var button1 = Ti.UI.createView({ backgroundImage:'images/icons/icon1.png', width:40, height:42, right:10 }); holder.add(button1); var button2 = Ti.UI.createView({ backgroundImage:'images/icons/icon2.png', width:40, height:42 right:60 }); holder.add(button2); win1.rightNavButton = holder;
-
Mine using Alloy
<RightNavButton> <ButtonBar id="rightbuttonbar" onClick="editItem"> <Labels> <Label id="editLabel" title="Edit"/> <Label title="Add"/> </Labels> </ButtonBar> </RightNavButton>