screen_title_icons.xml revision 980a938c1c9a6a5791a8240e5a1e6638ab28dc77
1fd03db0fe9c7a7f72df560b2039f2c3050c2fab9epoger@google.com<?xml version="1.0" encoding="utf-8"?> 2877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com<!-- Copyright (C) 2006 The Android Open Source Project 3fd03db0fe9c7a7f72df560b2039f2c3050c2fab9epoger@google.com 4fd03db0fe9c7a7f72df560b2039f2c3050c2fab9epoger@google.com Licensed under the Apache License, Version 2.0 (the "License"); 5877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com you may not use this file except in compliance with the License. 6877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com You may obtain a copy of the License at 79c875d34ff13d82f581448ced0d9eb5b067368b9epoger@google.com 87815e73c65a12541c31bd2e630a2d6549744181cepoger@google.com http://www.apache.org/licenses/LICENSE-2.0 97815e73c65a12541c31bd2e630a2d6549744181cepoger@google.com 107815e73c65a12541c31bd2e630a2d6549744181cepoger@google.com Unless required by applicable law or agreed to in writing, software 117815e73c65a12541c31bd2e630a2d6549744181cepoger@google.com distributed under the License is distributed on an "AS IS" BASIS, 127815e73c65a12541c31bd2e630a2d6549744181cepoger@google.com WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 137815e73c65a12541c31bd2e630a2d6549744181cepoger@google.com See the License for the specific language governing permissions and 147815e73c65a12541c31bd2e630a2d6549744181cepoger@google.com limitations under the License. 15877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com--> 16877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com 17877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com<!-- 18877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.comThis is the basic layout for a screen, with all of its features enabled. 19877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com--> 200fb212581440a63edcc695a34302e96605989a11epoger@google.com 210fb212581440a63edcc695a34302e96605989a11epoger@google.com<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 227815e73c65a12541c31bd2e630a2d6549744181cepoger@google.com android:fitsSystemWindows="true" 239c875d34ff13d82f581448ced0d9eb5b067368b9epoger@google.com android:orientation="vertical" 249c875d34ff13d82f581448ced0d9eb5b067368b9epoger@google.com android:layout_width="match_parent" 259c875d34ff13d82f581448ced0d9eb5b067368b9epoger@google.com android:layout_height="match_parent"> 269c875d34ff13d82f581448ced0d9eb5b067368b9epoger@google.com <RelativeLayout android:id="@android:id/title_container" 27877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com style="?android:attr/windowTitleBackgroundStyle" 28877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:layout_width="match_parent" 29a82c9eb5984d7bac69980a52ecac8bbc032802e1borenet@google.com android:layout_height="?android:attr/windowTitleSize"> 30877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com <!-- The title background has 9px left padding. --> 31877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com <ImageView android:id="@android:id/left_icon" 32877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:visibility="gone" 33877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:layout_marginRight="9dip" 34877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:layout_width="16dip" 35877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:layout_height="16dip" 360fb212581440a63edcc695a34302e96605989a11epoger@google.com android:scaleType="fitCenter" 370fb212581440a63edcc695a34302e96605989a11epoger@google.com android:layout_alignParentLeft="true" 38877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:layout_centerVertical="true" /> 39877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com <ProgressBar android:id="@+id/progress_circular" 40877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com style="?android:attr/progressBarStyleSmallTitle" 41877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:visibility="gone" 42877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:max="10000" 43877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:layout_centerVertical="true" 44877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:layout_alignParentRight="true" 45877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:layout_marginLeft="6dip" 46877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:layout_width="wrap_content" 47877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:layout_height="wrap_content" /> 48877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com <!-- There are 6dip between this and the circular progress on the right, we 49877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com also make 6dip (with the -3dip margin_left) to the icon on the left or 50877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com the screen left edge if no icon. This also places our left edge 3dip to 51877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com the left of the title text left edge. --> 52877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com <ProgressBar android:id="@+id/progress_horizontal" 53877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com style="?android:attr/progressBarStyleHorizontal" 54877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:layout_width="match_parent" 55877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:layout_height="wrap_content" 56877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:layout_marginLeft="-3dip" 57877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:layout_toLeftOf="@android:id/progress_circular" 58877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:layout_toRightOf="@android:id/left_icon" 59877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:layout_centerVertical="true" 60877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:visibility="gone" 61877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:max="10000" /> 62877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com <LinearLayout 63877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:layout_width="match_parent" 64877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:layout_height="match_parent" 65877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:orientation="horizontal" 66877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:layout_toLeftOf="@id/progress_circular" 67877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:layout_toRightOf="@android:id/left_icon" 68877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com > 69877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com <TextView android:id="@android:id/title" 70877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com style="?android:attr/windowTitleStyle" 71877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:layout_width="0dip" 72877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:layout_height="match_parent" 73877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:layout_weight="1" 74877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:background="@null" 75877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:fadingEdge="horizontal" 76877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:scrollHorizontally="true" 77877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:gravity="center_vertical" 78877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:layout_marginRight="2dip" 79877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com /> 80877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com <!-- 2dip between the icon and the title text, if icon is present. --> 81877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com <ImageView android:id="@android:id/right_icon" 82877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:visibility="gone" 83877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:layout_width="16dip" 84877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:layout_height="16dip" 85877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:layout_weight="0" 86877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:layout_gravity="center_vertical" 87877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:scaleType="fitCenter" 88877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com /> 897815e73c65a12541c31bd2e630a2d6549744181cepoger@google.com </LinearLayout> 90877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com </RelativeLayout> 91877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com <FrameLayout android:id="@android:id/content" 92877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:layout_width="match_parent" 937815e73c65a12541c31bd2e630a2d6549744181cepoger@google.com android:layout_height="0dip" 94877cfe380d396ffe688125ee55f541930b1f5a21epoger@google.com android:layout_weight="1" 959118413608e277b4500130bc2117400f9d9b0201Eric Boren android:foregroundGravity="fill_horizontal|top" 969118413608e277b4500130bc2117400f9d9b0201Eric Boren android:foreground="?android:attr/windowContentOverlay" /> 979118413608e277b4500130bc2117400f9d9b0201Eric Boren</LinearLayout> 980fb212581440a63edcc695a34302e96605989a11epoger@google.com