[TIMOB-575] Ti.UI.createToolbar crashes Android
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:53:33.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.2.0 |
Components | Android |
Labels | android, feature |
Reporter | Kjetil Rohde Jakobsen |
Assignee | Don Thorp |
Created | 2011-04-15T02:32:17.000+0000 |
Updated | 2011-04-17T01:53:33.000+0000 |
Description
The following app.js causes Android emulator to crash. It seems that Ti.UI.createToolbar has not been implemented?
[TRACE] E/TiModule( 274): (kroll$1) [8,401] Error creating proxy ti.modules.titanium.ui.ToolbarProxy: ti.modules.titanium.ui.ToolbarProxy [TRACE] E/TiModule( 274): java.lang.ClassNotFoundException: ti.modules.titanium.ui.ToolbarProxy
(full trace in attachment)
var win1 = Titanium.UI.createWindow({
title:'Tab 1',
backgroundColor:'#fff'
});
var mybtn = Titanium.UI.createButton({
title:'Test',
height:10,
width:55
});
var toolbar2=Titanium.UI.createToolbar({
items:[mybtn],
bottom:0,
borderTop:true,
borderBottom:true,
barColor:'#000'
});
win1.add(toolbar2);
win1.open();
Attachments
File | Date | Size |
---|---|---|
createtoolbar.txt | 2011-04-15T02:32:18.000+0000 | 29612 |
Toolbar is an iPhone specific control. Similar controls appear in some Android apps, so we may create one for Android in the future.
(from [32c93c7a020d1e96abffd1186d6032a4fadd1d0e]) [#575 state:resolved] Implemented temporary control to prevent apps using toolbar from crashing. Developers will now see a red toolbar with white text saying not yet implemented on Android http://github.com/appcelerator/titanium_mobile/commit/32c93c7a020d1e96abffd1186d6032a4fadd1d0e"> http://github.com/appcelerator/titanium_mobile/commit/32c93c7a020d1...