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        <RelativeLayout
59            android:layout_width="match_parent"
60            android:layout_height="wrap_content"
61            android:layout_gravity="center">
62            <TextView
63                android:id="@+id/systemSizePrefix"
64                android:text="@string/running_processes_header_system_prefix"
65                android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1"
66                android:textColor="?android:attr/textColorSecondary"
67                android:layout_alignParentStart="true"
68                android:layout_height="wrap_content"
69                android:layout_width="wrap_content"
70                android:layout_marginLeft="16dp"
71                android:maxLines="1" />
72            <TextView
73                android:id="@+id/systemSize"
74                android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1"
75                android:textColor="?android:attr/textColorSecondary"
76                android:layout_height="wrap_content"
77                android:layout_width="wrap_content"
78                android:layout_alignParentEnd="true"
79                android:maxLines="1" />
80        </RelativeLayout>
81    </LinearLayout>
82
83    <LinearLayout
84        android:layout_width="match_parent"
85        android:layout_height="32dp"
86        android:orientation="horizontal">
87        <ImageView
88            android:layout_width="16dp"
89            android:layout_height="16dp"
90            android:layout_gravity="center"
91            android:scaleType="centerInside"
92            android:src="?android:attr/colorAccent"
93            android:contentDescription="@null" />
94        <RelativeLayout
95            android:layout_width="match_parent"
96            android:layout_height="wrap_content"
97            android:layout_gravity="center"
98            android:orientation="horizontal">
99            <TextView
100                android:id="@+id/appsSizePrefix"
101                android:text="@string/running_processes_header_apps_prefix"
102                android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1"
103                android:textColor="?android:attr/textColorSecondary"
104                android:layout_height="wrap_content"
105                android:layout_width="wrap_content"
106                android:layout_marginLeft="16dp"
107                android:layout_alignParentStart="true"
108                android:maxLines="1" />
109            <TextView
110                android:id="@+id/appsSize"
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_alignParentEnd="true"
116                android:maxLines="1" />
117        </RelativeLayout>
118    </LinearLayout>
119
120    <LinearLayout
121        android:layout_width="match_parent"
122        android:layout_height="32dp"
123        android:orientation="horizontal">
124        <ImageView
125            android:layout_width="16dp"
126            android:layout_height="16dp"
127            android:layout_gravity="center"
128            android:scaleType="centerInside"
129            android:src="@color/running_processes_free_ram"
130            android:contentDescription="@null" />
131        <RelativeLayout
132            android:layout_width="match_parent"
133            android:layout_height="wrap_content"
134            android:layout_gravity="center"
135            android:orientation="horizontal">
136            <TextView
137                android:id="@+id/freeSizePrefix"
138                android:text="@string/running_processes_header_free_prefix"
139                android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1"
140                android:textColor="?android:attr/textColorSecondary"
141                android:layout_height="wrap_content"
142                android:layout_width="wrap_content"
143                android:layout_marginLeft="16dp"
144                android:layout_alignParentStart="true"
145                android:maxLines="1" />
146            <TextView
147                android:id="@+id/freeSize"
148                android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1"
149                android:textColor="?android:attr/textColorSecondary"
150                android:layout_height="wrap_content"
151                android:layout_width="wrap_content"
152                android:layout_alignParentEnd="true"
153                android:maxLines="1" />
154        </RelativeLayout>
155    </LinearLayout>
156
157    <TextView
158        android:id="@+id/listHeader"
159        android:layout_width="wrap_content"
160        android:layout_height="48dp"
161        android:layout_marginTop="8dp"
162        android:singleLine="true"
163        android:ellipsize="marquee"
164        android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body2"
165        android:textColor="?android:attr/textColorPrimary"
166        android:textAlignment="viewStart"
167        android:gravity="left|center_vertical"
168        android:text="@string/running_processes_header_footer" />
169
170</LinearLayout>
171