[ALOY-784] Implement Titanium.Android.ActionBar properties in <Menu>
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-06-09T16:06:00.000+0000 |
Affected Version/s | Alloy 1.2.0 |
Fix Version/s | Alloy 1.4.0, 2014 Sprint 08 |
Components | XML |
Labels | actionbar, alloy, notable, qe-testadded |
Reporter | Fokke Zandbergen |
Assignee | Tim Poulsen |
Created | 2013-08-14T13:38:11.000+0000 |
Updated | 2014-06-09T16:06:00.000+0000 |
Description
I would like to see the ActionBar example at http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.Android.ActionBar implemented as attributes for the
<Menu>
element, so that I can do:
<Menu title="New Title" />
Attachments
File | Date | Size |
---|---|---|
app.zip | 2014-02-11T21:11:40.000+0000 | 3449243 |
Test app attached
PR: https://github.com/appcelerator/alloy/pull/335 Test app included in the PR or use the attached Functional test: 1. Build the app for Android 2. Confirm these properties of the actionBar * title should be "My XML Menu" which is set in the XML * displayHomeAsUp (left caret) is true, set in TSS * icon is custom (not the stock Titanium logo), set in TSS * custom background graphic, set in TSS 3. Click the app icon, an alert is displayed. This is set in the XML
PR merged
Updated to prevent errors when running the resulting app on Android 2.x. New PR https://github.com/appcelerator/alloy/pull/373 merged
Verified working as expected. TiSDK 3.3.0.v20140429122517 Appcelerator Studio 3.3.0.201404281355 CLI 3.3.0-dev Alloy 1.4.0-dev Tested on Galaxy Nexus 4.3 Sample code also running (not showing ActionBar) on Android Emulator 2.3.3 and iOS Closing.
Reopening to add components
Added components