[AC-1517] Property displayHomeAsUp in menu/actionbar not working when set in alloy xml
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-09-01T06:53:00.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Aslan |
Assignee | Mauro Parra-Miranda |
Created | 2014-07-14T08:28:55.000+0000 |
Updated | 2016-03-08T07:37:58.000+0000 |
Description
ActionBar allows to set home button as UP - it works as it should when setDisplayHomeAsUp is invoked, however when property displayHomeAsUp is set within xml it's not working at all:
<Alloy>
<Window id="main" class="container">
<Menu id="menu" platform="android" displayHomeAsUp="true">
<MenuItem id="menu1" class="action" onClick="doClickMenu" />
<MenuItem id="menu2" class="action" onClick="doClickMenu" />
<MenuItem id="menu3" class="overflow" onClick="doClickMenu" />
</Menu>
<Label>Action Buttons</Label>
</Window>
</Alloy>
Hi, We have tested this project with test code bellow and it's working in Ti SDK 3.3.0-RC.
TESTING ENVIRONMENT:
Ti CLI 3.3.0-rc Titanium SDK: 3.3.0.RC and 3.2.X.GA Min SdkVersion="10", Target SdkVersion="14" Android Device and EmulatorSTEPS TO TEST
1. Create a new alloy project. 2. Copy and paste the "index.js" code segment given below to the project "index.js" file. 3. Copy and paste the "index.xml" code segment given below to the project "index.xml" file. 4. Copy and paste the "alloy.js" code segment given below to the project "alloy.js" file. 5. In the project tiapp.xml file replace "EXPECTED RESULT
Home button should display and works as a one level up buttonActual STATUS
It's workingTEST CODES
index.js
index.xml
alloy.js
tiapp.xml
Thanks
Hello [~aslan]! Can you please take a look to this with the testcase above, 3.3.0.GA and let us know if it's failing for you? TIA!
Tested in 3.3.0.GA and works fine. Please test and if you still have an issue, please make a comment and provide a testcase that reproduces the issue in 3.3.0.GA.