White Paper Google DeveloperDocumentation

overlay action bar.
Enable Blend Mode
To enable blending mode for the action bar, you need to create a custom theme that extends the existing action bar theme and sets the android: windowActionBarOverlay property to true.
Only for Android 3.0 and above
If your minSdkVersion is set to 11 or higher, your custom theme should use the Theme.Holo theme (or one of its descendants) as the parent theme. For example:
<resources> <style name="CustomActionBarTheme" parent="@android:style/Theme.Holo"> <item name="android:windowActionBarOverlay">true</item> </style> </resources>
For Android 2.1 and higher
If your application uses the support library for compatibility on devices with versions lower than Android 3.0, your custom theme should use Theme.AppCompat (or one of its descendants) as the parent theme. For example:
<resources> <style name="CustomActionBarTheme" parent="@android:style/Theme.AppCompat"> <item name="android:windowActionBarOverlay">true</item> <item name="windowActionBarOverlay">true</item> </style> </resources>
Specify the upper limit of the layout.
When the action bar is in overlay mode, it can obscure the portion of your layout that should remain visible. To ensure that such items remain under the action bar all the time, add an edge or pad to the top of the view (s) using the height specified by actionBarSize. For example:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingTop="?android:attr/actionBarSize"> ... </RelativeLayout>
Cristiana214 Aug 22 '14 at 4:18 2014-08-22 04:18
source share