Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24961] Android. Tabgroup with 6.2.0 SDK gives error "ActionBar not available for TabGroup"

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionDuplicate
Resolution Date2018-10-08T12:46:46.000+0000
Affected Version/sRelease 6.2.0
Fix Version/sn/a
ComponentsAndroid
Labelsqe-6.2.0
ReporterLokesh Choudhary
AssigneeUnknown
Created2017-07-14T22:29:49.000+0000
Updated2018-10-08T12:46:46.000+0000

Description

Steps to reproduce:

1. Use the code below in your app.js & build for android device emulator using SDK 6.2.0.v20170714101430.
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'
}),
tab2 = Ti.UI.createTab({
    window: win2,
    title: 'Red'
}),
tabGroup = Ti.UI.createTabGroup({
    tabs: [tab1, tab2]
});
tabGroup.open();

Actual Results:

1. No tabgroup opens after the splash screen. 2. We see error:
[ERROR] :  [Pixel] TabGroupProxy: (main) [91,91] ActionBar not available for TabGroup
[ERROR] :  [Nexus 5] TabGroupProxy: (main) [113,113] ActionBar not available for TabGroup

Expected Results:

1. Tab group should open successfully.

Comments

  1. Lokesh Choudhary 2017-07-24

    Thanks for checking [~ybanev], [~lmorris]. I am not seeing it too.
  2. Yordan Banev 2018-10-05

    By the error message I assume the app was using a custom theme with a disabled action bar. Closing it as a duplicate.

JSON Source