Created
April 27, 2015 04:26
-
-
Save benbahrenburg/12be82423b27cd2a37cb to your computer and use it in GitHub Desktop.
iOS Center Button for tabGroup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var btnAction = Ti.UI.createButton({ | |
title:"I'm a button", | |
backgroundColor:"#e7e7e8", | |
width:85, height:55, bottom:0, borderColor:"#999" | |
}); | |
$.tbgroup.add(btnAction); | |
$.tbgroup.open(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Alloy> | |
<TabGroup id="tbgroup"> | |
<Tab icon="KS_nav_views.png"> | |
<Window title="Tab 1"> | |
<Label>I am Window 1</Label> | |
</Window> | |
</Tab> | |
<Tab icon="KS_nav_views.png"> | |
<Window title="Tab 2"> | |
<Label>I am Window 2</Label> | |
</Window> | |
</Tab> | |
<Tab icon="KS_nav_views.png"> | |
<Window title="Tab 3"> | |
<Label>I am Window 3</Label> | |
</Window> | |
</Tab> | |
<Tab icon="KS_nav_views.png"> | |
<Window title="Tab 4"> | |
<Label>I am Window 4</Label> | |
</Window> | |
</Tab> | |
<Tab icon="KS_nav_views.png"> | |
<Window title="Tab 5"> | |
<Label>I am Window 5</Label> | |
</Window> | |
</Tab> | |
</TabGroup> | |
</Alloy> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment