Adam Powell | 33b9743 | 2010-04-20 10:01:14 -0700 | [diff] [blame] | 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 | <!-- |
| 18 | This 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:orientation="vertical" |
| 23 | android:fitsSystemWindows="true"> |
Adam Powell | 45f1e08 | 2010-12-10 14:20:13 -0800 | [diff] [blame] | 24 | <com.android.internal.widget.ActionBarContainer android:id="@+id/action_bar_container" |
Adam Powell | 89e0645 | 2010-06-23 20:24:52 -0700 | [diff] [blame] | 25 | android:layout_width="match_parent" |
Adam Powell | 45f1e08 | 2010-12-10 14:20:13 -0800 | [diff] [blame] | 26 | android:layout_height="wrap_content" |
| 27 | style="?android:attr/actionBarStyle"> |
Adam Powell | 89e0645 | 2010-06-23 20:24:52 -0700 | [diff] [blame] | 28 | <com.android.internal.widget.ActionBarView |
| 29 | android:id="@+id/action_bar" |
| 30 | android:layout_width="match_parent" |
| 31 | android:layout_height="wrap_content" |
Adam Powell | bc234a1 | 2010-09-09 17:03:50 -0700 | [diff] [blame] | 32 | style="?android:attr/actionBarStyle" /> |
Adam Powell | 89e0645 | 2010-06-23 20:24:52 -0700 | [diff] [blame] | 33 | <com.android.internal.widget.ActionBarContextView |
| 34 | android:id="@+id/action_context_bar" |
| 35 | android:layout_width="match_parent" |
Adam Powell | bc234a1 | 2010-09-09 17:03:50 -0700 | [diff] [blame] | 36 | android:layout_height="wrap_content" |
Adam Powell | d8b3f2e | 2010-12-02 13:37:03 -0800 | [diff] [blame] | 37 | android:visibility="gone" |
Adam Powell | bc234a1 | 2010-09-09 17:03:50 -0700 | [diff] [blame] | 38 | style="?android:attr/actionModeStyle" /> |
Adam Powell | 45f1e08 | 2010-12-10 14:20:13 -0800 | [diff] [blame] | 39 | </com.android.internal.widget.ActionBarContainer> |
Adam Powell | 33b9743 | 2010-04-20 10:01:14 -0700 | [diff] [blame] | 40 | <FrameLayout android:id="@android:id/content" |
| 41 | android:layout_width="match_parent" |
| 42 | android:layout_height="0dip" |
| 43 | android:layout_weight="1" |
| 44 | android:foregroundGravity="fill_horizontal|top" |
| 45 | android:foreground="?android:attr/windowContentOverlay" /> |
Adam Powell | 89e0645 | 2010-06-23 20:24:52 -0700 | [diff] [blame] | 46 | <LinearLayout android:id="@+id/lower_action_context_bar" |
Adam Powell | 33b9743 | 2010-04-20 10:01:14 -0700 | [diff] [blame] | 47 | android:layout_width="match_parent" |
| 48 | android:layout_height="wrap_content" |
Adam Powell | bc234a1 | 2010-09-09 17:03:50 -0700 | [diff] [blame] | 49 | style="?android:attr/actionBarStyle" |
Adam Powell | 33b9743 | 2010-04-20 10:01:14 -0700 | [diff] [blame] | 50 | android:visibility="gone" /> |
| 51 | </LinearLayout> |