[TIMOB-24035] Android: Having both onOpen and onFocus on a window hides MenuItem
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 5.4.0 |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Rene Pot |
Assignee | Unknown |
Created | 2016-10-14T12:26:25.000+0000 |
Updated | 2018-02-28T19:55:29.000+0000 |
Description
(Attached is test app)
On android when there is both onOpen and onFocus on a window.xml file the menuItems will not render. Attached an example application that demonstrates the issue.
When removing one of the 2 (doesn't matter which) the menu re-appears. XML is very simple
<Alloy>
<Window class="container" onOpen="openWin" onFocus="openWin" >
<Menu platform="android">
<MenuItem id="mapButton" onClick="clickButton"></MenuItem>
</Menu>
<Label text="Test" />
</Window>
</Alloy>
And so is the tss
"#mapButton[platform=android]":{
icon: "/images/andrIcMap.png",
showAsAction : Ti.Android.SHOW_AS_ACTION_ALWAYS,
title: 'Map'
}
Attachments
File | Date | Size |
---|---|---|
Test.zip | 2016-10-14T12:25:44.000+0000 | 2215584 |
No comments