Titanium JIRA Archive
Appcelerator Community (AC)

[AC-218] Use System Icons as an ImageView

GitHub Issuen/a
TypeNew Feature
Priorityn/a
StatusResolved
ResolutionInvalid
Resolution Date2015-11-13T18:24:43.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterLeonardo Leal
AssigneeShak Hossain
Created2015-07-11T18:40:48.000+0000
Updated2015-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...

Comments

  1. Rakhi Mitro 2015-09-20

    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:*
       
       var 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();
       
       
       
    *Test Result:* System icons are working as expected. Thanks

JSON Source