[TIMOB-17393] Android: Add Support for SplitActionBar
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-10-03T02:23:32.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 4.0.0 |
Components | Android |
Labels | TCSupport, actionbar, android |
Reporter | Manojkumar Murugesan |
Assignee | Chee Kiat Ng |
Created | 2014-07-11T19:15:35.000+0000 |
Updated | 2016-07-05T14:26:24.000+0000 |
Description
Add support SplitActionBar:
http://developer.android.com/guide/topics/ui/actionbar.html#SplitBar
Attachments
File | Date | Size |
---|---|---|
app.js | 2014-10-03T02:26:43.000+0000 | 487 |
splitActionBarFalse.jpg | 2014-10-03T02:30:59.000+0000 | 13882 |
splitActionBarTrue.jpg | 2014-10-03T02:32:19.000+0000 | 14961 |
Thanks for your report. The Platform team will set the priority on this.
The PR in case you couldn't find it like me ;) https://github.com/appcelerator/titanium_mobile/pull/6124/files
CR and FT passed. Thanks!
sample code attached
Added screenshot of action bar when splitActionBar is disabled.
Added screenshot of action bar when splitActionBar is enabled.
The ticket asks for a Custom View as well, but the PR only implements the Split View. Is there another ticket for the Custom View now? If not, this issue should not be resolved.
Verified fixed using: Titanium SDK 4.0.0.v20150312092612 Studio 4.0.0.201503062102 CLI 3.4.2 Xcode 6.2 Node 0.12 On: Note 2, Android 4.3 splitActionBar: true correctly shows elements.
Has this been tested against Lollipop? It doesn't work for me with the following config: * Samsung S5 running Android 5.0 * Ti SDK 4.0.0.v20150415182612 * Android build tools 21.1.2 * Node 0.10.37 * Built from command line See http://cl.ly/image/2B053E2I3T2G for screengrab
[~shodan_uk] This does not work on 5.0 according to https://code.google.com/p/android/issues/detail?id=79722 On Lollipop you'd have to create a top and bottom Toolbar, which is not yet possible in Titanium. See TIMOB-18357
It's funny that this feature is added and deprecated in the same version :D (I've added this before Material Theme Support which breaks this functionality) So actually we can remove this property again.