• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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="?android:attr/listPreferredItemPaddingStart"
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="48sp"
31        android:singleLine="true"
32        android:ellipsize="marquee"
33        android:textAppearance="@android:style/TextAppearance.Material.Body2"
34        android:textColor="?android:attr/colorAccent"
35        android:textAlignment="viewStart"
36        android:gravity="left|center_vertical"
37        android:text="@string/running_processes_header_title" />
38
39    <view class="com.android.settings.applications.LinearColorBar"
40        android:id="@+id/color_bar"
41        android:layout_width="match_parent"
42        android:layout_height="16sp"
43        android:orientation="horizontal" />
44
45    <LinearLayout
46        android:layout_width="match_parent"
47        android:layout_height="32sp"
48        android:layout_marginTop="8sp"
49        android:orientation="horizontal">
50        <ImageView
51            android:layout_width="16sp"
52            android:layout_height="16sp"
53            android:layout_gravity="center"
54            android:scaleType="centerInside"
55            android:src="@color/running_processes_system_ram"
56            android:contentDescription="@null" />
57        <LinearLayout
58            android:layout_width="match_parent"
59            android:layout_height="wrap_content"
60            android:layout_gravity="center"
61            android:orientation="horizontal">
62            <TextView
63                android:id="@+id/systemSizePrefix"
64                android:text="@string/running_processes_header_system_prefix"
65                android:textAppearance="@android:style/TextAppearance.Material.Body1"
66                android:textColor="?android:attr/textColorSecondary"
67                android:layout_height="wrap_content"
68                android:layout_width="wrap_content"
69                android:layout_marginLeft="16dp"
70                android:maxLines="1" />
71            <ImageView
72                android:src="@drawable/dotted_line_480px"
73                android:layout_width="0dip"
74                android:layout_weight="1"
75                android:layout_height="1px"
76                android:layout_marginStart="1dip"
77                android:layout_marginEnd="1dip"
78                android:baselineAlignBottom="true"
79                android:scaleType="center"
80                android:contentDescription="@null" />
81            <TextView
82                android:id="@+id/systemSize"
83                android:textAppearance="@android:style/TextAppearance.Material.Body1"
84                android:textColor="?android:attr/textColorSecondary"
85                android:layout_height="wrap_content"
86                android:layout_width="wrap_content"
87                android:maxLines="1" />
88        </LinearLayout>
89    </LinearLayout>
90
91    <LinearLayout
92        android:layout_width="match_parent"
93        android:layout_height="32sp"
94        android:orientation="horizontal">
95        <ImageView
96            android:layout_width="16sp"
97            android:layout_height="16sp"
98            android:layout_gravity="center"
99            android:scaleType="centerInside"
100            android:src="@color/running_processes_apps_ram"
101            android:contentDescription="@null" />
102        <LinearLayout
103            android:layout_width="match_parent"
104            android:layout_height="wrap_content"
105            android:layout_gravity="center"
106            android:orientation="horizontal">
107            <TextView
108                android:id="@+id/appsSizePrefix"
109                android:text="@string/running_processes_header_apps_prefix"
110                android:textAppearance="@android:style/TextAppearance.Material.Body1"
111                android:textColor="?android:attr/textColorSecondary"
112                android:layout_height="wrap_content"
113                android:layout_width="wrap_content"
114                android:layout_marginLeft="16dp"
115                android:maxLines="1" />
116            <ImageView
117                android:src="@drawable/dotted_line_480px"
118                android:layout_width="0dip"
119                android:layout_weight="1"
120                android:layout_height="1px"
121                android:baselineAlignBottom="true"
122                android:layout_marginStart="1dip"
123                android:layout_marginEnd="1dip"
124                android:scaleType="center"
125                android:contentDescription="@null" />
126            <TextView
127                android:id="@+id/appsSize"
128                android:textAppearance="@android:style/TextAppearance.Material.Body1"
129                android:textColor="?android:attr/textColorSecondary"
130                android:layout_height="wrap_content"
131                android:layout_width="wrap_content"
132                android:maxLines="1" />
133        </LinearLayout>
134    </LinearLayout>
135
136    <LinearLayout
137        android:layout_width="match_parent"
138        android:layout_height="32sp"
139        android:orientation="horizontal">
140        <ImageView
141            android:layout_width="16sp"
142            android:layout_height="16sp"
143            android:layout_gravity="center"
144            android:scaleType="centerInside"
145            android:src="@color/running_processes_free_ram"
146            android:contentDescription="@null" />
147        <LinearLayout
148            android:layout_width="match_parent"
149            android:layout_height="wrap_content"
150            android:layout_gravity="center"
151            android:orientation="horizontal">
152            <TextView
153                android:id="@+id/freeSizePrefix"
154                android:text="@string/running_processes_header_free_prefix"
155                android:textAppearance="@android:style/TextAppearance.Material.Body1"
156                android:textColor="?android:attr/textColorSecondary"
157                android:layout_height="wrap_content"
158                android:layout_width="wrap_content"
159                android:layout_marginLeft="16dp"
160                android:maxLines="1" />
161            <ImageView
162                android:src="@drawable/dotted_line_480px"
163                android:layout_width="0dip"
164                android:layout_weight="1"
165                android:layout_height="1px"
166                android:baselineAlignBottom="true"
167                android:layout_marginStart="1dip"
168                android:layout_marginEnd="1dip"
169                android:scaleType="center"
170                android:contentDescription="@null" />
171            <TextView
172                android:id="@+id/freeSize"
173                android:textAppearance="@android:style/TextAppearance.Material.Body1"
174                android:textColor="?android:attr/textColorSecondary"
175                android:layout_height="wrap_content"
176                android:layout_width="wrap_content"
177                android:maxLines="1" />
178        </LinearLayout>
179    </LinearLayout>
180
181    <TextView
182        android:id="@+id/listHeader"
183        android:layout_width="wrap_content"
184        android:layout_height="48dp"
185        android:layout_marginTop="8sp"
186        android:singleLine="true"
187        android:ellipsize="marquee"
188        android:textAppearance="@android:style/TextAppearance.Material.Body2"
189        android:textColor="?android:attr/colorAccent"
190        android:textAlignment="viewStart"
191        android:gravity="left|center_vertical"
192        android:text="@string/running_processes_header_footer" />
193
194</LinearLayout>
195