[TIMOB-8264] iOS: toolbar - requesting barImage
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 1.8.2 |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Jon Alter |
Assignee | Unknown |
Created | 2012-03-23T21:44:59.000+0000 |
Updated | 2018-03-06T18:57:54.000+0000 |
Description
Requesting the ability to set the barImage on a toolbar. You can set barColor on a toolbar, but barImage is not exposed.
Steps to reproduce:
Step 1: add the attached image to your project Step 2: run the code below Step 3: notice that barImage is set on both the window and the toolbar but it only shows on the window's navbar Step 4: uncomment barColor and notice that is affects that toolbar as you would expect
var win = Ti.UI.createWindow({
backgroundColor:'white',
modal: true,
barImage: 'toolbar_background_blue.png'
});
win.open();
var send = Titanium.UI.createButton({
title: 'Send',
style: Titanium.UI.iPhone.SystemButtonStyle.DONE,
});
var camera = Titanium.UI.createButton({
systemButton: Titanium.UI.iPhone.SystemButton.CAMERA,
});
var cancel = Titanium.UI.createButton({
systemButton: Titanium.UI.iPhone.SystemButton.CANCEL
});
flexSpace = Titanium.UI.createButton({
systemButton:Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE
});
var toolbar = Titanium.UI.iOS.createToolbar({
items:[send, flexSpace, camera, flexSpace, cancel],
bottom:0,
borderTop:true,
borderBottom:false,
barImage: 'toolbar_background_blue.png'
// barColor: 'black',
});
win.add(toolbar);
Attachments
File | Date | Size |
---|---|---|
toolbar_background_blue.png | 2012-03-23T21:44:59.000+0000 | 6405 |
No comments