Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16436] Android: Integrate AppCompat custom theme + ActionBarActivity

GitHub Issuen/a
TypeSub-task
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-02-20T23:27:12.000+0000
Affected Version/sn/a
Fix Version/s2014 Sprint 04, 2014 Sprint 04 API, Release 3.3.0
ComponentsAndroid
Labelsapi
ReporterHieu Pham
AssigneeHieu Pham
Created2014-02-10T19:26:20.000+0000
Updated2017-03-16T21:43:42.000+0000

Description

Now that we have integrated appcompat libraries, the next step is to extend ActionBarActivity to TiBaseActivity, set up custom themes and add support for ActionBarActivity (ActionBar support for older devices) Android theme source for reference: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/res/res/values/themes.xml Testing steps: 1. Run scons and make sure basic titanium apps run successfully. 2. Run Anvil to make sure no new failures 3. Run this code on both HoneyComb+ and 2.x devices
var tabgroup = Ti.UI.createTabGroup();
var win1 = Ti.UI.createWindow({backgroundColor: 'red'});
var tab = Ti.UI.createTab({window: win1, title: 'Tab1'});
var win2 = Ti.UI.createWindow({backgroundColor: 'blue'});
var tab2 = Ti.UI.createTab({window: win2, title: 'Tab2'});
tabgroup.addTab(tab);
tabgroup.addTab(tab2);
tabgroup.open();

You should see the action bar with 2.x device.

Comments

  1. Hieu Pham 2014-02-13

    master PR: https://github.com/appcelerator/titanium_mobile/pull/5348 Kitchensink update: https://github.com/appcelerator-developer-relations/KitchenSink/pull/141
  2. Dan Peleg 2014-05-23

    It's impossible to hide the action bar after this release..
  3. Lee Morris 2017-03-16

    Closing ticket as the issue has been fixed.

JSON Source