From 084369fb5e738e4db6ae94b4e24e777bdd9d9c2c Mon Sep 17 00:00:00 2001 From: Scott Main Date: Thu, 20 Oct 2011 20:12:21 -0700 Subject: [PATCH] docs: add uiOptions attribute to manifest docs Change-Id: Ibe2960b6a4ee4e2d4a47e4acc7c197d68702d1e6 --- .../guide/topics/manifest/activity-element.jd | 30 +++++++++++++++++-- .../topics/manifest/application-element.jd | 29 ++++++++++++++++-- 2 files changed, 55 insertions(+), 4 deletions(-) diff --git a/docs/html/guide/topics/manifest/activity-element.jd b/docs/html/guide/topics/manifest/activity-element.jd index 02a8a8e42505e..e23fb0ec7e3e5 100644 --- a/docs/html/guide/topics/manifest/activity-element.jd +++ b/docs/html/guide/topics/manifest/activity-element.jd @@ -34,6 +34,7 @@ parent.link=manifest-intro.html android:stateNotNeeded=["true" | "false"] android:taskAffinity="string" android:theme="resource or theme" + android:uiOptions=["none" | "splitActionBarWhenNarrow"] android:windowSoftInputMode=["stateUnspecified", "stateUnchanged", "stateHidden", "stateAlwaysHidden", "stateVisible", @@ -749,14 +750,39 @@ match what the activity actually looks like).

If this attribute is not set, the activity inherits the theme set for the -application as a whole — see the +application as a whole — from the <application> element's theme -attribute. If that attribute is also not set, the default system theme is used. +attribute. If that attribute is also not set, the default system theme is used. For more +information, see the Styles and Themes developer guide.

+ +
{@code android:uiOptions}
+
Extra options for an activity's UI. +

Must be one of the following values.

+ + + + + +
ValueDescription
{@code "none"}No extra UI options. This is the default.
{@code "splitActionBarWhenNarrow"}Add a bar at +the bottom of the screen to display action items in the {@link android.app.ActionBar}, when +constrained for horizontal space (such as when in portrait mode on a handset). Instead of a small +number of action items appearing in the action bar at the top of the screen, the action bar is +split into the top navigation section and the bottom bar for action items. This ensures a reasonable +amount of space is made available not only for the action items, but also for navigation and title +elements at the top. Menu items are not split across the two bars; they always appear +together.
+

For more information about the action bar, see the Action Bar developer guide.

+

This attribute was added in API level 14.

+
+ +
{@code android:windowSoftInputMode}
How the main window of the activity interacts with the window containing diff --git a/docs/html/guide/topics/manifest/application-element.jd b/docs/html/guide/topics/manifest/application-element.jd index 41313ed35cc25..4f1964cd40286 100644 --- a/docs/html/guide/topics/manifest/application-element.jd +++ b/docs/html/guide/topics/manifest/application-element.jd @@ -23,7 +23,8 @@ parent.link=manifest-intro.html android:process="string" android:restoreAnyVersion=["true" | "false"] android:taskAffinity="string" - android:theme="resource or theme" > + android:theme="resource or theme" + android:uiOptions=["none" | "splitActionBarWhenNarrow"] > . . . </application>
@@ -276,7 +277,31 @@ set by the
A reference to a style resource defining a default theme for all activities in the application. Individual activities can override the default by setting their own theme -attributes; see that attribute for more information.
+attributes. For more information, see the Styles and Themes developer guide. + + + +
{@code android:uiOptions}
+
Extra options for an activity's UI. +

Must be one of the following values.

+ + + + + +
ValueDescription
{@code "none"}No extra UI options. This is the default.
{@code "splitActionBarWhenNarrow"}Add a bar at +the bottom of the screen to display action items in the {@link android.app.ActionBar}, when +constrained for horizontal space (such as when in portrait mode on a handset). Instead of a small +number of action items appearing in the action bar at the top of the screen, the action bar is +split into the top navigation section and the bottom bar for action items. This ensures a reasonable +amount of space is made available not only for the action items, but also for navigation and title +elements at the top. Menu items are not split across the two bars; they always appear +together.
+

For more information about the action bar, see the Action Bar developer guide.

+

This attribute was added in API level 14.

+