Android O SDK.
[android_tools.git] / sdk / platforms / android-26 / data / res / layout / screen_progress.xml
blobe70f2ec0a372afa516c557e3150f43c7884c1dd6
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 
11 **     http://www.apache.org/licenses/LICENSE-2.0 
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.
20 This is the basic layout for a screen, with all of its features enabled.
21 -->
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"
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               android:theme="?attr/actionBarTheme" />
37     <RelativeLayout android:id="@android:id/title_container" 
38         style="?android:attr/windowTitleBackgroundStyle"
39         android:layout_width="match_parent" 
40         android:layout_height="?android:attr/windowTitleSize"
41     >
42         <ProgressBar android:id="@+android:id/progress_circular"
43             style="?android:attr/progressBarStyleSmallTitle"
44             android:layout_width="wrap_content"
45             android:layout_height="wrap_content"
46             android:layout_marginStart="5dip"
47             android:layout_alignParentEnd="true"
48             android:layout_centerVertical="true"
49             android:visibility="gone"
50             android:max="10000"
51         />
52         <ProgressBar android:id="@+android:id/progress_horizontal"
53             style="?android:attr/progressBarStyleHorizontal"
54             android:layout_width="match_parent"
55             android:layout_height="wrap_content"
56             android:layout_marginStart="2dip"
57             android:layout_alignParentStart="true"
58             android:layout_toStartOf="@android:id/progress_circular"
59             android:layout_centerVertical="true"
60             android:visibility="gone"
61             android:max="10000" 
62         />
63         <TextView android:id="@android:id/title"
64             style="?android:attr/windowTitleStyle"
65             android:layout_width="match_parent" 
66             android:layout_height="match_parent"
67             android:layout_alignParentStart="true"
68             android:layout_toStartOf="@android:id/progress_circular"
69             android:background="@null"
70             android:fadingEdge="horizontal"
71             android:gravity="center_vertical"
72             android:scrollHorizontally="true" 
73         />
74     </RelativeLayout>
75     <FrameLayout android:id="@android:id/content"
76         android:layout_width="match_parent"
77         android:layout_height="0dip"
78         android:layout_weight="1"
79         android:foregroundGravity="fill_horizontal|top"
80         android:foreground="?android:attr/windowContentOverlay"
81     />
82 </LinearLayout>