screen_action_bar.xml revision 1dc5f92716189da02aa62f508adb6099061668b5
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<com.android.internal.widget.ActionBarOverlayLayout
22    xmlns:android="http://schemas.android.com/apk/res/android"
23    android:id="@+id/action_bar_overlay_layout"
24    android:layout_width="match_parent"
25    android:layout_height="match_parent"
26    android:splitMotionEvents="false">
27    <FrameLayout android:id="@android:id/content"
28        android:layout_width="match_parent"
29        android:layout_height="match_parent" />
30    <LinearLayout android:id="@+id/top_action_bar"
31                  android:layout_width="match_parent"
32                  android:layout_height="wrap_content">
33        <com.android.internal.widget.ActionBarContainer android:id="@+id/action_bar_container"
34            android:layout_width="match_parent"
35            android:layout_height="wrap_content"
36            android:layout_alignParentTop="true"
37            style="?android:attr/actionBarStyle"
38            android:gravity="top">
39            <com.android.internal.widget.ActionBarView
40                android:id="@+id/action_bar"
41                android:layout_width="match_parent"
42                android:layout_height="wrap_content"
43                style="?android:attr/actionBarStyle" />
44            <com.android.internal.widget.ActionBarContextView
45                android:id="@+id/action_context_bar"
46                android:layout_width="match_parent"
47                android:layout_height="wrap_content"
48                android:visibility="gone"
49                style="?android:attr/actionModeStyle" />
50        </com.android.internal.widget.ActionBarContainer>
51        <ImageView android:src="?android:attr/windowContentOverlay"
52                   android:scaleType="fitXY"
53                   android:layout_width="match_parent"
54                   android:layout_height="wrap_content" />
55    </LinearLayout>
56    <com.android.internal.widget.ActionBarContainer android:id="@+id/split_action_bar"
57                  android:layout_width="match_parent"
58                  android:layout_height="wrap_content"
59                  style="?android:attr/actionBarSplitStyle"
60                  android:visibility="gone"
61                  android:gravity="center"/>
62</com.android.internal.widget.ActionBarOverlayLayout>
63