screen_action_bar.xml revision d28f30a9e0f30cb48e88958ae4b95f3243e8a0f9
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 the Action Bar enabled. 19--> 20 21<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 22 android:layout_width="match_parent" 23 android:layout_height="match_parent" 24 android:orientation="vertical" 25 android:fitsSystemWindows="true" 26 android:splitMotionEvents="false"> 27 <com.android.internal.widget.ActionBarContainer android:id="@+id/action_bar_container" 28 android:layout_width="match_parent" 29 android:layout_height="wrap_content" 30 style="?android:attr/actionBarStyle"> 31 <com.android.internal.widget.ActionBarView 32 android:id="@+id/action_bar" 33 android:layout_width="match_parent" 34 android:layout_height="wrap_content" 35 style="?android:attr/actionBarStyle" /> 36 <com.android.internal.widget.ActionBarContextView 37 android:id="@+id/action_context_bar" 38 android:layout_width="match_parent" 39 android:layout_height="wrap_content" 40 android:visibility="gone" 41 style="?android:attr/actionModeStyle" /> 42 </com.android.internal.widget.ActionBarContainer> 43 <FrameLayout android:id="@android:id/content" 44 android:layout_width="match_parent" 45 android:layout_height="0dip" 46 android:layout_weight="1" 47 android:foregroundGravity="fill_horizontal|top" 48 android:foreground="?android:attr/windowContentOverlay" /> 49 <com.android.internal.widget.ActionBarContainer android:id="@+id/split_action_bar" 50 android:layout_width="match_parent" 51 android:layout_height="wrap_content" 52 style="?android:attr/actionBarSplitStyle" 53 android:visibility="gone" 54 android:gravity="center"/> 55</LinearLayout> 56