Android O SDK.
[android_tools.git] / sdk / platforms / android-26 / data / res / layout / screen_title.xml
blob409e9c6ec2b39c11b3065bc401cfc0b4edb4ba8d
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2006 The Android Open Source Project
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 -->
17 <!--
18 This is an optimized layout for a screen, with the minimum set of features
19 enabled.
20 -->
22 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
23     android:orientation="vertical"
24     android:fitsSystemWindows="true">
25     <!-- Popout bar for action modes -->
26     <ViewStub android:id="@+id/action_mode_bar_stub"
27               android:inflatedId="@+id/action_mode_bar"
28               android:layout="@layout/action_mode_bar"
29               android:layout_width="match_parent"
30               android:layout_height="wrap_content"
31               android:theme="?attr/actionBarTheme" />
32     <FrameLayout
33         android:layout_width="match_parent" 
34         android:layout_height="?android:attr/windowTitleSize"
35         style="?android:attr/windowTitleBackgroundStyle">
36         <TextView android:id="@android:id/title" 
37             style="?android:attr/windowTitleStyle"
38             android:background="@null"
39             android:fadingEdge="horizontal"
40             android:gravity="center_vertical"
41             android:layout_width="match_parent"
42             android:layout_height="match_parent" />
43     </FrameLayout>
44     <FrameLayout android:id="@android:id/content"
45         android:layout_width="match_parent" 
46         android:layout_height="0dip"
47         android:layout_weight="1"
48         android:foregroundGravity="fill_horizontal|top"
49         android:foreground="?android:attr/windowContentOverlay" />
50 </LinearLayout>