Skip to content

Instantly share code, notes, and snippets.

@falkolab
Last active September 4, 2015 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save falkolab/3cf53dce38a543529bf4 to your computer and use it in GitHub Desktop.
Save falkolab/3cf53dce38a543529bf4 to your computer and use it in GitHub Desktop.
View proxy remain in memory after window closed. https://yadi.sk/i/jmtrY-I0isR3g
exports.setMenuItemEnabled = function(menuItem, isEnabled) {
if(OS_ANDROID) {
if(Alloy.Globals.isAndroid3Plus && menuItem.actionView) {
menuItem.actionView.touchEnabled = isEnabled;
}
menuItem.setEnabled(isEnabled);
}
};
exports.baseController = 'base';
var args = arguments[0] || {};
<Alloy>
<Window>
<ActionBar id="actionBar" displayHomeAsUp="true" />
<ScrollView id="formContainer" />
<ActivityIndicator id="activityIndicator" />
</Window>
</Alloy>
Alloy.createController('search/form').getView().open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment