screen_action_bar_overlay.xml revision e2194445b078932733a2d1a02fc084ea2f3c7360
1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2010 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16 17<!-- 18This is an optimized layout for a screen with 19the Action Bar enabled overlaying application content. 20--> 21 22<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 23 android:fitsSystemWindows="true"> 24 <FrameLayout android:id="@android:id/content" 25 android:layout_width="match_parent" 26 android:layout_height="match_parent" /> 27 <ViewAnimator android:id="@+id/action_bar_animator" 28 android:layout_width="match_parent" 29 android:layout_height="wrap_content" 30 android:gravity="top" 31 android:inAnimation="@anim/push_down_in_no_alpha" 32 android:outAnimation="@anim/push_down_out_no_alpha"> 33 <com.android.internal.widget.ActionBarView 34 android:id="@+id/action_bar" 35 android:layout_width="match_parent" 36 android:layout_height="wrap_content" 37 style="?android:attr/windowActionBarStyle" /> 38 <com.android.internal.widget.ActionBarContextView 39 android:id="@+id/action_context_bar" 40 android:layout_width="match_parent" 41 android:layout_height="wrap_content" /> 42 </ViewAnimator> 43 <ImageView android:src="?android:attr/windowContentOverlay" 44 android:scaleType="fitXY" 45 android:layout_width="match_parent" 46 android:layout_height="wrap_content" 47 android:layout_below="@id/action_bar_animator" /> 48 <LinearLayout android:id="@+id/lower_action_context_bar" 49 android:layout_width="match_parent" 50 android:layout_height="wrap_content" 51 android:layout_gravity="bottom" 52 style="?android:attr/windowActionBarStyle" 53 android:visibility="gone" /> 54</RelativeLayout> 55