blob: 384c0b692f41d5e9fc25463155084024f3364451 [file] [log] [blame]
Dianne Hackbornfe9590b2014-07-23 13:38:41 -07001<?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"
Fan Zhangec407ff2016-12-19 11:14:59 -080023 android:paddingStart="@dimen/preference_no_icon_padding_start"
Dianne Hackbornfe9590b2014-07-23 13:38:41 -070024 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
25 android:orientation="vertical">
26
27 <TextView
28 android:id="@+id/title"
29 android:layout_width="wrap_content"
Fan Zhangec407ff2016-12-19 11:14:59 -080030 android:layout_height="48dp"
Dianne Hackbornfe9590b2014-07-23 13:38:41 -070031 android:singleLine="true"
32 android:ellipsize="marquee"
Amin Shaikha5e8bdd2018-12-19 14:42:59 -050033 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body2"
Fan Zhangec407ff2016-12-19 11:14:59 -080034 android:textColor="?android:attr/textColorPrimary"
Dianne Hackbornfe9590b2014-07-23 13:38:41 -070035 android:textAlignment="viewStart"
Dianne Hackbornbe300222014-08-27 14:04:32 -070036 android:gravity="left|center_vertical"
Dianne Hackbornfe9590b2014-07-23 13:38:41 -070037 android:text="@string/running_processes_header_title" />
38
Andrew Sapperstein38bf1922018-03-18 15:53:09 -070039 <ProgressBar
Dianne Hackbornfe9590b2014-07-23 13:38:41 -070040 android:id="@+id/color_bar"
Andrew Sapperstein38bf1922018-03-18 15:53:09 -070041 style="?android:attr/progressBarStyleHorizontal"
Dianne Hackbornfe9590b2014-07-23 13:38:41 -070042 android:layout_width="match_parent"
Andrew Sapperstein38bf1922018-03-18 15:53:09 -070043 android:layout_height="wrap_content"
44 android:progressDrawable="@drawable/color_bar_progress"/>
Dianne Hackbornfe9590b2014-07-23 13:38:41 -070045
46 <LinearLayout
47 android:layout_width="match_parent"
Fan Zhangec407ff2016-12-19 11:14:59 -080048 android:layout_height="32dp"
49 android:layout_marginTop="8dp"
Dianne Hackbornbe300222014-08-27 14:04:32 -070050 android:orientation="horizontal">
Dianne Hackbornfe9590b2014-07-23 13:38:41 -070051 <ImageView
Fan Zhangec407ff2016-12-19 11:14:59 -080052 android:layout_width="16dp"
53 android:layout_height="16dp"
Dianne Hackbornbe300222014-08-27 14:04:32 -070054 android:layout_gravity="center"
Dianne Hackbornfe9590b2014-07-23 13:38:41 -070055 android:scaleType="centerInside"
Dianne Hackbornfe9590b2014-07-23 13:38:41 -070056 android:src="@color/running_processes_system_ram"
57 android:contentDescription="@null" />
Raff Tsai52ee4882019-10-24 14:31:54 +080058 <RelativeLayout
Dianne Hackbornbe300222014-08-27 14:04:32 -070059 android:layout_width="match_parent"
Dianne Hackbornfe9590b2014-07-23 13:38:41 -070060 android:layout_height="wrap_content"
Raff Tsai52ee4882019-10-24 14:31:54 +080061 android:layout_gravity="center">
Dianne Hackbornbe300222014-08-27 14:04:32 -070062 <TextView
63 android:id="@+id/systemSizePrefix"
64 android:text="@string/running_processes_header_system_prefix"
Amin Shaikha5e8bdd2018-12-19 14:42:59 -050065 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1"
Dianne Hackbornbe300222014-08-27 14:04:32 -070066 android:textColor="?android:attr/textColorSecondary"
Raff Tsai52ee4882019-10-24 14:31:54 +080067 android:layout_alignParentStart="true"
Dianne Hackbornbe300222014-08-27 14:04:32 -070068 android:layout_height="wrap_content"
69 android:layout_width="wrap_content"
70 android:layout_marginLeft="16dp"
71 android:maxLines="1" />
Dianne Hackbornbe300222014-08-27 14:04:32 -070072 <TextView
73 android:id="@+id/systemSize"
Amin Shaikha5e8bdd2018-12-19 14:42:59 -050074 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1"
Dianne Hackbornbe300222014-08-27 14:04:32 -070075 android:textColor="?android:attr/textColorSecondary"
76 android:layout_height="wrap_content"
77 android:layout_width="wrap_content"
Raff Tsai52ee4882019-10-24 14:31:54 +080078 android:layout_alignParentEnd="true"
Dianne Hackbornbe300222014-08-27 14:04:32 -070079 android:maxLines="1" />
Raff Tsai52ee4882019-10-24 14:31:54 +080080 </RelativeLayout>
Dianne Hackbornfe9590b2014-07-23 13:38:41 -070081 </LinearLayout>
82
83 <LinearLayout
84 android:layout_width="match_parent"
Fan Zhangec407ff2016-12-19 11:14:59 -080085 android:layout_height="32dp"
Dianne Hackbornbe300222014-08-27 14:04:32 -070086 android:orientation="horizontal">
Dianne Hackbornfe9590b2014-07-23 13:38:41 -070087 <ImageView
Fan Zhangec407ff2016-12-19 11:14:59 -080088 android:layout_width="16dp"
89 android:layout_height="16dp"
Dianne Hackbornbe300222014-08-27 14:04:32 -070090 android:layout_gravity="center"
Dianne Hackbornfe9590b2014-07-23 13:38:41 -070091 android:scaleType="centerInside"
Andrew Sapperstein517f14f2016-05-26 17:18:38 -070092 android:src="?android:attr/colorAccent"
Dianne Hackbornfe9590b2014-07-23 13:38:41 -070093 android:contentDescription="@null" />
Raff Tsai52ee4882019-10-24 14:31:54 +080094 <RelativeLayout
Dianne Hackbornbe300222014-08-27 14:04:32 -070095 android:layout_width="match_parent"
Dianne Hackbornfe9590b2014-07-23 13:38:41 -070096 android:layout_height="wrap_content"
Dianne Hackbornbe300222014-08-27 14:04:32 -070097 android:layout_gravity="center"
98 android:orientation="horizontal">
99 <TextView
100 android:id="@+id/appsSizePrefix"
101 android:text="@string/running_processes_header_apps_prefix"
Amin Shaikha5e8bdd2018-12-19 14:42:59 -0500102 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1"
Dianne Hackbornbe300222014-08-27 14:04:32 -0700103 android:textColor="?android:attr/textColorSecondary"
104 android:layout_height="wrap_content"
105 android:layout_width="wrap_content"
106 android:layout_marginLeft="16dp"
Raff Tsai52ee4882019-10-24 14:31:54 +0800107 android:layout_alignParentStart="true"
Dianne Hackbornbe300222014-08-27 14:04:32 -0700108 android:maxLines="1" />
Dianne Hackbornbe300222014-08-27 14:04:32 -0700109 <TextView
110 android:id="@+id/appsSize"
Amin Shaikha5e8bdd2018-12-19 14:42:59 -0500111 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1"
Dianne Hackbornbe300222014-08-27 14:04:32 -0700112 android:textColor="?android:attr/textColorSecondary"
113 android:layout_height="wrap_content"
114 android:layout_width="wrap_content"
Raff Tsai52ee4882019-10-24 14:31:54 +0800115 android:layout_alignParentEnd="true"
Dianne Hackbornbe300222014-08-27 14:04:32 -0700116 android:maxLines="1" />
Raff Tsai52ee4882019-10-24 14:31:54 +0800117 </RelativeLayout>
Dianne Hackbornfe9590b2014-07-23 13:38:41 -0700118 </LinearLayout>
119
120 <LinearLayout
121 android:layout_width="match_parent"
Fan Zhangec407ff2016-12-19 11:14:59 -0800122 android:layout_height="32dp"
Dianne Hackbornbe300222014-08-27 14:04:32 -0700123 android:orientation="horizontal">
Dianne Hackbornfe9590b2014-07-23 13:38:41 -0700124 <ImageView
Fan Zhangec407ff2016-12-19 11:14:59 -0800125 android:layout_width="16dp"
126 android:layout_height="16dp"
Dianne Hackbornbe300222014-08-27 14:04:32 -0700127 android:layout_gravity="center"
Dianne Hackbornfe9590b2014-07-23 13:38:41 -0700128 android:scaleType="centerInside"
129 android:src="@color/running_processes_free_ram"
130 android:contentDescription="@null" />
Raff Tsai52ee4882019-10-24 14:31:54 +0800131 <RelativeLayout
Dianne Hackbornbe300222014-08-27 14:04:32 -0700132 android:layout_width="match_parent"
Dianne Hackbornfe9590b2014-07-23 13:38:41 -0700133 android:layout_height="wrap_content"
Dianne Hackbornbe300222014-08-27 14:04:32 -0700134 android:layout_gravity="center"
135 android:orientation="horizontal">
136 <TextView
137 android:id="@+id/freeSizePrefix"
138 android:text="@string/running_processes_header_free_prefix"
Amin Shaikha5e8bdd2018-12-19 14:42:59 -0500139 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1"
Dianne Hackbornbe300222014-08-27 14:04:32 -0700140 android:textColor="?android:attr/textColorSecondary"
141 android:layout_height="wrap_content"
142 android:layout_width="wrap_content"
143 android:layout_marginLeft="16dp"
Raff Tsai52ee4882019-10-24 14:31:54 +0800144 android:layout_alignParentStart="true"
Dianne Hackbornbe300222014-08-27 14:04:32 -0700145 android:maxLines="1" />
Dianne Hackbornbe300222014-08-27 14:04:32 -0700146 <TextView
147 android:id="@+id/freeSize"
Amin Shaikha5e8bdd2018-12-19 14:42:59 -0500148 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body1"
Dianne Hackbornbe300222014-08-27 14:04:32 -0700149 android:textColor="?android:attr/textColorSecondary"
150 android:layout_height="wrap_content"
151 android:layout_width="wrap_content"
Raff Tsai52ee4882019-10-24 14:31:54 +0800152 android:layout_alignParentEnd="true"
Dianne Hackbornbe300222014-08-27 14:04:32 -0700153 android:maxLines="1" />
Raff Tsai52ee4882019-10-24 14:31:54 +0800154 </RelativeLayout>
Dianne Hackbornfe9590b2014-07-23 13:38:41 -0700155 </LinearLayout>
156
157 <TextView
158 android:id="@+id/listHeader"
159 android:layout_width="wrap_content"
Dianne Hackbornbe300222014-08-27 14:04:32 -0700160 android:layout_height="48dp"
Fan Zhangec407ff2016-12-19 11:14:59 -0800161 android:layout_marginTop="8dp"
Dianne Hackbornfe9590b2014-07-23 13:38:41 -0700162 android:singleLine="true"
163 android:ellipsize="marquee"
Amin Shaikha5e8bdd2018-12-19 14:42:59 -0500164 android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Body2"
Fan Zhangec407ff2016-12-19 11:14:59 -0800165 android:textColor="?android:attr/textColorPrimary"
Dianne Hackbornfe9590b2014-07-23 13:38:41 -0700166 android:textAlignment="viewStart"
Dianne Hackbornbe300222014-08-27 14:04:32 -0700167 android:gravity="left|center_vertical"
Dianne Hackbornfe9590b2014-07-23 13:38:41 -0700168 android:text="@string/running_processes_header_footer" />
169
170</LinearLayout>