[AC-218] Use System Icons as an ImageView
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | n/a |
| Status | Resolved |
| Resolution | Invalid |
| Resolution Date | 2015-11-13T18:24:43.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | n/a |
| Labels | n/a |
| Reporter | Leonardo Leal |
| Assignee | Shak Hossain |
| Created | 2015-07-11T18:40:48.000+0000 |
| Updated | 2015-11-13T18:24:43.000+0000 |
Description
We should be able to use System Icons in our Apps to keep the experience immersive without having to duplicate System Default Visuals for certain elements, like a Search Icon, Refresh, Add, Remove...
Hello, Tested this issue. Should be able to use iPhone [SystemIcons](http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.iPhone.SystemIcon) in the Apps. For Windows, please visit this [link](http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Windows.SystemIcon). *Test Environments:* Appc CLI Version :5.0.1 Titanium SDK Version:4.1.1.GA Device:iPad Appc Studio: Appcelerator Studio, build: 4.1.1.201507141126 Alloy: 1.7.6 Mac OS X,Version = 10.10.1. *Test Steps* 1) Create a sample app. 2) Run with sample code. *Test code:*
*Test Result:* System icons are working as expected. Thanksvar win1 = Ti.UI.createWindow({ backgroundColor: 'blue', title: 'Blue', }); win1.add(Ti.UI.createLabel({text: 'I am a blue window.'})); var win2 = Ti.UI.createWindow({ backgroundColor: 'red', title: 'Red' }); win2.add(Ti.UI.createLabel({text: 'I am a red window.'})); var tab1 = Ti.UI.createTab({ window: win1, title: 'Blue', icon:Titanium.UI.iPhone.SystemIcon.SEARCH }), tab2 = Ti.UI.createTab({ window: win2, title: 'Red', icon:Titanium.UI.iPhone.SystemIcon.CONTACTS }), tabGroup = Ti.UI.createTabGroup({ tabs: [tab1, tab2] }); tabGroup.open();