Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14895] Android: Add support for "Up" button on ActionBar

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2013-08-20T19:53:36.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterTim Poulsen
AssigneeIngo Muschenetz
Created2013-08-16T17:27:31.000+0000
Updated2014-06-19T12:43:25.000+0000

Description

I would like to be able to add an Up button to the ActionBar of my Android 4.x app. This button is shown as the app icon plus a left-pointing caret at the left edge of the ActionBar on Android 4.x-themed apps. See http://developer.android.com/design/patterns/navigation.html for info on appropriate UX. Additional UX details are described here: http://www.androidpolice.com/2013/05/10/finally-google-has-come-up-with-a-predictable-intuitive-sidebar-navigation-design-now-please-add-it-to-everything/ The button must be clickable and provide developers with the means of navigating the windows/views of their app (like a Navigation group).

Comments

  1. Tim Poulsen 2013-08-20

    Already implemented:
       var activity = $.index.activity;
       var actionBar = activity.actionBar;
       actionBar.displayHomeAsUp = true; // shows up caret
       actionBar.onHomeIconItemSelected = someFunction;
       
  2. Mark Mokryn 2013-08-21

JSON Source