[TIMOB-639] Crash with createButtonBar on Android Simulator
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2011-04-15T02:33:28.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M10 |
Components | Android |
Labels | android, buttonbar, crash, defect, release-1.6.0 |
Reporter | kyo.alone |
Assignee | Don Thorp |
Created | 2011-04-15T02:33:26.000+0000 |
Updated | 2017-03-02T18:51:42.000+0000 |
Description
//Titanium version 1.1.2
I have a NullPointerExeption when I created a ButtonBar in app.js :
var win = Titanium.UI.createWindow({
title:'Tab 1',
backgroundColor:'#fff'
});
var buttonBar = Titanium.UI.createButtonBar({id:'buttonbar', labels:['Left', 'Right'],backgroundColor:'#336699'});
//button Bar is null
buttonBar.addEventListener('click',function(e)
{
var a = Titanium.UI.createAlertDialog();
a.setTitle('Buttonbar Test');
a.setMessage('You click button index = ' + e.index);
a.show();
});
win.add(buttonBar);
win.open();
I found it, I should create a view and add the buttonBar in this view.
Assigning to Don for triage.
ButtonBar is not an Android control.
Closing as invalid.