1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3/* 4** Copyright 2014, The Android Open Source Project 5** 6** Licensed under the Apache License, Version 2.0 (the "License"); 7** you may not use this file except in compliance with the License. 8** You may obtain a copy of the License at 9** 10** http://www.apache.org/licenses/LICENSE-2.0 11** 12** Unless required by applicable law or agreed to in writing, software 13** distributed under the License is distributed on an "AS IS" BASIS, 14** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15** See the License for the specific language governing permissions and 16** limitations under the License. 17*/ 18--> 19 20<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content" 23 android:paddingStart="@dimen/preference_no_icon_padding_start" 24 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" 25 android:orientation="vertical"> 26 27 <TextView 28 android:id="@+id/title" 29 android:layout_width="wrap_content" 30 android:layout_height="48dp" 31 android:singleLine="true" 32 android:ellipsize="marquee" 33 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body2" 34 android:textColor="?android:attr/textColorPrimary" 35 android:textAlignment="viewStart" 36 android:gravity="left|center_vertical" 37 android:text="@string/running_processes_header_title" /> 38 39 <ProgressBar 40 android:id="@+id/color_bar" 41 style="?android:attr/progressBarStyleHorizontal" 42 android:layout_width="match_parent" 43 android:layout_height="wrap_content" 44 android:progressDrawable="@drawable/color_bar_progress"/> 45 46 <LinearLayout 47 android:layout_width="match_parent" 48 android:layout_height="32dp" 49 android:layout_marginTop="8dp" 50 android:orientation="horizontal"> 51 <ImageView 52 android:layout_width="16dp" 53 android:layout_height="16dp" 54 android:layout_gravity="center" 55 android:scaleType="centerInside" 56 android:src="@color/running_processes_system_ram" 57 android:contentDescription="@null" /> 58 <LinearLayout 59 android:layout_width="match_parent" 60 android:layout_height="wrap_content" 61 android:layout_gravity="center" 62 android:orientation="horizontal"> 63 <TextView 64 android:id="@+id/systemSizePrefix" 65 android:text="@string/running_processes_header_system_prefix" 66 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1" 67 android:textColor="?android:attr/textColorSecondary" 68 android:layout_height="wrap_content" 69 android:layout_width="wrap_content" 70 android:layout_marginLeft="16dp" 71 android:maxLines="1" /> 72 <ImageView 73 android:src="@drawable/dotted_line_480px" 74 android:layout_width="0dip" 75 android:layout_weight="1" 76 android:layout_height="1px" 77 android:layout_marginStart="1dip" 78 android:layout_marginEnd="1dip" 79 android:baselineAlignBottom="true" 80 android:scaleType="center" 81 android:contentDescription="@null" /> 82 <TextView 83 android:id="@+id/systemSize" 84 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1" 85 android:textColor="?android:attr/textColorSecondary" 86 android:layout_height="wrap_content" 87 android:layout_width="wrap_content" 88 android:maxLines="1" /> 89 </LinearLayout> 90 </LinearLayout> 91 92 <LinearLayout 93 android:layout_width="match_parent" 94 android:layout_height="32dp" 95 android:orientation="horizontal"> 96 <ImageView 97 android:layout_width="16dp" 98 android:layout_height="16dp" 99 android:layout_gravity="center" 100 android:scaleType="centerInside" 101 android:src="?android:attr/colorAccent" 102 android:contentDescription="@null" /> 103 <LinearLayout 104 android:layout_width="match_parent" 105 android:layout_height="wrap_content" 106 android:layout_gravity="center" 107 android:orientation="horizontal"> 108 <TextView 109 android:id="@+id/appsSizePrefix" 110 android:text="@string/running_processes_header_apps_prefix" 111 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1" 112 android:textColor="?android:attr/textColorSecondary" 113 android:layout_height="wrap_content" 114 android:layout_width="wrap_content" 115 android:layout_marginLeft="16dp" 116 android:maxLines="1" /> 117 <ImageView 118 android:src="@drawable/dotted_line_480px" 119 android:layout_width="0dip" 120 android:layout_weight="1" 121 android:layout_height="1px" 122 android:baselineAlignBottom="true" 123 android:layout_marginStart="1dip" 124 android:layout_marginEnd="1dip" 125 android:scaleType="center" 126 android:contentDescription="@null" /> 127 <TextView 128 android:id="@+id/appsSize" 129 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1" 130 android:textColor="?android:attr/textColorSecondary" 131 android:layout_height="wrap_content" 132 android:layout_width="wrap_content" 133 android:maxLines="1" /> 134 </LinearLayout> 135 </LinearLayout> 136 137 <LinearLayout 138 android:layout_width="match_parent" 139 android:layout_height="32dp" 140 android:orientation="horizontal"> 141 <ImageView 142 android:layout_width="16dp" 143 android:layout_height="16dp" 144 android:layout_gravity="center" 145 android:scaleType="centerInside" 146 android:src="@color/running_processes_free_ram" 147 android:contentDescription="@null" /> 148 <LinearLayout 149 android:layout_width="match_parent" 150 android:layout_height="wrap_content" 151 android:layout_gravity="center" 152 android:orientation="horizontal"> 153 <TextView 154 android:id="@+id/freeSizePrefix" 155 android:text="@string/running_processes_header_free_prefix" 156 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1" 157 android:textColor="?android:attr/textColorSecondary" 158 android:layout_height="wrap_content" 159 android:layout_width="wrap_content" 160 android:layout_marginLeft="16dp" 161 android:maxLines="1" /> 162 <ImageView 163 android:src="@drawable/dotted_line_480px" 164 android:layout_width="0dip" 165 android:layout_weight="1" 166 android:layout_height="1px" 167 android:baselineAlignBottom="true" 168 android:layout_marginStart="1dip" 169 android:layout_marginEnd="1dip" 170 android:scaleType="center" 171 android:contentDescription="@null" /> 172 <TextView 173 android:id="@+id/freeSize" 174 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1" 175 android:textColor="?android:attr/textColorSecondary" 176 android:layout_height="wrap_content" 177 android:layout_width="wrap_content" 178 android:maxLines="1" /> 179 </LinearLayout> 180 </LinearLayout> 181 182 <TextView 183 android:id="@+id/listHeader" 184 android:layout_width="wrap_content" 185 android:layout_height="48dp" 186 android:layout_marginTop="8dp" 187 android:singleLine="true" 188 android:ellipsize="marquee" 189 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body2" 190 android:textColor="?android:attr/textColorPrimary" 191 android:textAlignment="viewStart" 192 android:gravity="left|center_vertical" 193 android:text="@string/running_processes_header_footer" /> 194 195</LinearLayout> 196