1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3/* //device/apps/common/assets/res/layout/screen_full.xml 4** 5** Copyright 2006, The Android Open Source Project 6** 7** Licensed under the Apache License, Version 2.0 (the "License"); 8** you may not use this file except in compliance with the License. 9** You may obtain a copy of the License at 10** 11** http://www.apache.org/licenses/LICENSE-2.0 12** 13** Unless required by applicable law or agreed to in writing, software 14** distributed under the License is distributed on an "AS IS" BASIS, 15** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16** See the License for the specific language governing permissions and 17** limitations under the License. 18*/ 19 20This is the basic layout for a screen, with all of its features enabled. 21--> 22 23<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 24 android:fitsSystemWindows="true" 25 android:orientation="vertical" 26 android:layout_width="match_parent" 27 android:layout_height="match_parent" 28> 29 <!-- Popout bar for action modes --> 30 <ViewStub android:id="@+id/action_mode_bar_stub" 31 android:inflatedId="@+id/action_mode_bar" 32 android:layout="@layout/action_mode_bar" 33 android:layout_width="match_parent" 34 android:layout_height="wrap_content" /> 35 36 <RelativeLayout android:id="@android:id/title_container" 37 style="?android:attr/windowTitleBackgroundStyle" 38 android:layout_width="match_parent" 39 android:layout_height="?android:attr/windowTitleSize" 40 > 41 <ProgressBar android:id="@+android:id/progress_circular" 42 style="?android:attr/progressBarStyleSmallTitle" 43 android:layout_width="wrap_content" 44 android:layout_height="wrap_content" 45 android:layout_marginStart="5dip" 46 android:layout_alignParentEnd="true" 47 android:layout_centerVertical="true" 48 android:visibility="gone" 49 android:max="10000" 50 /> 51 <ProgressBar android:id="@+android:id/progress_horizontal" 52 style="?android:attr/progressBarStyleHorizontal" 53 android:layout_width="match_parent" 54 android:layout_height="wrap_content" 55 android:layout_marginStart="2dip" 56 android:layout_alignParentStart="true" 57 android:layout_toStartOf="@android:id/progress_circular" 58 android:layout_centerVertical="true" 59 android:visibility="gone" 60 android:max="10000" 61 /> 62 <TextView android:id="@android:id/title" 63 style="?android:attr/windowTitleStyle" 64 android:layout_width="match_parent" 65 android:layout_height="match_parent" 66 android:layout_alignParentStart="true" 67 android:layout_toStartOf="@android:id/progress_circular" 68 android:background="@null" 69 android:fadingEdge="horizontal" 70 android:gravity="center_vertical" 71 android:scrollHorizontally="true" 72 /> 73 </RelativeLayout> 74 <FrameLayout android:id="@android:id/content" 75 android:layout_width="match_parent" 76 android:layout_height="0dip" 77 android:layout_weight="1" 78 android:foregroundGravity="fill_horizontal|top" 79 android:foreground="?android:attr/windowContentOverlay" 80 /> 81</LinearLayout> 82