summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorAdam Powell <adamp@google.com>2011-04-27 19:24:47 -0700
committerAdam Powell <adamp@google.com>2011-04-28 19:13:25 -0700
commit9b4bee0f14bbd137b0797127aff2df46a6321ec5 (patch)
tree9f3e8760941e431286b976e0b8d28b702d9d250d /core/java/android
parentd93e19aef7abdac18788d5198eb5cdae06f016fd (diff)
Introducing the split action bar.
Apply (or extend) the theme Theme.Holo.SplitActionBarWhenNarrow or Theme.Holo.Light.SplitActionBarWhenNarrow to enable splitting the action bar across both the top and bottom of the screen. This places the action menu along the bottom, leaving more room at the top for titles, navigation, and custom views and more room at the bottom for menu items. TODO: Refine layout of the action menu when placed at the bottom of the screen. Make action modes split as well. Change-Id: I92c91f99c533f26aecf6b828ed041386c4f16922
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/app/Activity.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/android/app/Activity.java b/core/java/android/app/Activity.java
index f5849c24e59a..02b6619dfaf9 100644
--- a/core/java/android/app/Activity.java
+++ b/core/java/android/app/Activity.java
@@ -2482,6 +2482,7 @@ public class Activity extends ContextThemeWrapper
break;
case Window.FEATURE_ACTION_BAR:
+ initActionBar();
mActionBar.dispatchMenuVisibilityChanged(false);
break;
}