Skip to content

Instantly share code, notes, and snippets.

@manumaticx
Created September 19, 2014 08:49
Show Gist options
  • Save manumaticx/e1c4e68884d58cb60b06 to your computer and use it in GitHub Desktop.
Save manumaticx/e1c4e68884d58cb60b06 to your computer and use it in GitHub Desktop.
Split ActionBar Alloy example
<Alloy>
<Window splitActionBar="true">
<Menu>
<!-- Action Items -->
<MenuItem icon="/images/ic_action_edit.png" showAsAction="Ti.Android.SHOW_AS_ACTION_ALWAYS" />
<MenuItem icon="/images/ic_action_important.png" showAsAction="Ti.Android.SHOW_AS_ACTION_ALWAYS" />
<MenuItem icon="/images/ic_action_labels.png" showAsAction="Ti.Android.SHOW_AS_ACTION_ALWAYS" />
<!-- some other Menu items -->
<MenuItem title="Settings" showAsAction="Ti.Android.SHOW_AS_ACTION_NEVER" />
<MenuItem title="About" showAsAction="Ti.Android.SHOW_AS_ACTION_NEVER" />
<MenuItem title="Help" showAsAction="Ti.Android.SHOW_AS_ACTION_NEVER" />
</Menu>
<Label text="Split ActionBar" />
</Window>
</Alloy>
@manumaticx
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment