Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-575] Ti.UI.createToolbar crashes Android

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:53:33.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.2.0
ComponentsAndroid
Labelsandroid, feature
ReporterKjetil Rohde Jakobsen
AssigneeDon Thorp
Created2011-04-15T02:32:17.000+0000
Updated2011-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

FileDateSize
createtoolbar.txt2011-04-15T02:32:18.000+000029612

Comments

  1. Don Thorp 2011-04-15

    Toolbar is an iPhone specific control. Similar controls appear in some Android apps, so we may create one for Android in the future.

  2. Don Thorp 2011-04-15

    (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...

JSON Source