Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(582)

Side by Side Diff: chrome/android/java/res/layout/data_reduction_stats_layout.xml

Issue 2781323004: Create a new Data Saver settings page that adds the site breakdown (Closed)
Patch Set: rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2015 The Chromium Authors. All rights reserved. 2 <!-- Copyright 2015 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be 3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. --> 4 found in the LICENSE file. -->
5 5
6 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 6 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
7 xmlns:tools="http://schemas.android.com/tools" 7 xmlns:tools="http://schemas.android.com/tools"
8 android:id="@+id/data_reduction_stats_container" 8 android:id="@+id/data_reduction_stats_container"
9 android:layout_width="match_parent" 9 android:layout_width="match_parent"
10 android:layout_height="wrap_content" 10 android:layout_height="wrap_content"
11 android:clipChildren="false" 11 android:clipChildren="false"
12 android:clipToPadding="false" 12 android:clipToPadding="false"
13 android:orientation="vertical" > 13 android:orientation="vertical" >
14 14
15 <TextView 15 <LinearLayout
16 android:layout_width="match_parent" 16 android:layout_width="match_parent"
17 android:layout_height="wrap_content" 17 android:layout_height="wrap_content"
18 android:fadingEdge="horizontal" 18 android:baselineAligned="false"
19 android:text="@string/data_reduction_stats_title" 19 android:orientation="horizontal" >
20 android:textAppearance="@style/PreferenceCategoryTextStyle" /> 20
21 <LinearLayout
22 android:layout_height="wrap_content"
23 android:layout_width="0dp"
24 android:layout_weight="1"
25 android:orientation="vertical" >
26
27 <LinearLayout
28 android:layout_width="wrap_content"
29 android:layout_height="wrap_content"
30 android:layout_marginTop="8dp"
31 android:orientation="horizontal" >
32
33 <TextView
34 android:layout_width="match_parent"
35 android:layout_height="wrap_content"
36 android:singleLine="true"
37 android:text="@string/data_reduction_savings_label"
38 android:textAppearance="@style/PreferenceCategoryTextStyle" />
39
40 <TextView
41 android:id="@+id/data_reduction_savings"
42 android:layout_width="wrap_content"
43 android:layout_height="wrap_content"
44 android:paddingStart="3dp"
45 android:textAppearance="@style/PreferenceCategoryTextStyle" />
46
47 </LinearLayout>
48
49 <LinearLayout
50 android:layout_width="wrap_content"
51 android:layout_height="wrap_content"
52 android:layout_marginTop="4dp"
53 android:orientation="horizontal" >
54
55 <TextView
56 android:layout_width="match_parent"
57 android:layout_height="wrap_content"
58 android:singleLine="true"
59 android:text="@string/data_reduction_usage_label"
60 android:textColor="?android:attr/textColorSecondary"
61 android:textSize="14sp" />
62
63 <TextView
64 android:id="@+id/data_reduction_usage"
65 android:layout_width="wrap_content"
66 android:layout_height="wrap_content"
67 android:paddingStart="3dp"
68 android:textColor="?android:attr/textColorSecondary"
69 android:textSize="14sp" />
70 </LinearLayout>
71
72 </LinearLayout>
73
74 <TextView
75 android:id="@+id/data_reduction_percent"
76 android:layout_height="wrap_content"
77 android:layout_width="wrap_content"
78 android:layout_marginTop="0dp"
79 android:includeFontPadding="false"
80 android:textColor="@color/light_active_color"
81 android:textSize="50sp" />
82
83 </LinearLayout>
21 84
22 <include layout="@layout/data_usage_chart" /> 85 <include layout="@layout/data_usage_chart" />
23 86
24 <LinearLayout 87 <LinearLayout
25 android:layout_width="match_parent" 88 android:layout_width="match_parent"
26 android:layout_height="wrap_content" > 89 android:layout_height="wrap_content" >
27 90
28 <TextView 91 <TextView
29 android:id="@+id/data_reduction_start_date" 92 android:id="@+id/data_reduction_start_date"
30 android:layout_width="0dp" 93 android:layout_width="0dp"
31 android:layout_height="wrap_content" 94 android:layout_height="wrap_content"
32 android:layout_weight="1" 95 android:layout_weight="1"
33 android:textAppearance="@style/PreferenceSummary" 96 android:textAppearance="@style/PreferenceSummary"
34 android:textSize="14sp" /> 97 android:textSize="14sp" />
35 98
36 <TextView 99 <TextView
37 android:id="@+id/data_reduction_end_date" 100 android:id="@+id/data_reduction_end_date"
38 android:layout_width="wrap_content" 101 android:layout_width="wrap_content"
39 android:layout_height="wrap_content" 102 android:layout_height="wrap_content"
40 android:textAppearance="@style/PreferenceSummary" 103 android:textAppearance="@style/PreferenceSummary"
41 android:textSize="14sp" /> 104 android:textSize="14sp" />
42 105
43 </LinearLayout> 106 </LinearLayout>
44 107
45 <LinearLayout
46 android:layout_width="match_parent"
47 android:layout_height="wrap_content"
48 android:orientation="horizontal" >
49
50 <TextView
51 android:id="@+id/data_reduction_percent"
52 android:layout_height="wrap_content"
53 android:layout_width="wrap_content"
54 android:layout_marginTop="0dp"
55 android:textColor="?android:attr/textColorPrimary"
56 android:textSize="50sp" />
57
58 <FrameLayout
59 android:layout_height="wrap_content"
60 android:layout_width="0dp"
61 android:layout_weight="1"
62 android:paddingEnd="6dp"
63 android:paddingStart="20dp" >
64
65 <LinearLayout
66 android:layout_height="wrap_content"
67 android:layout_width="wrap_content"
68 android:layout_gravity="end"
69 android:orientation="vertical"
70 tools:ignore="UselessParent" >
71
72 <TextView
73 android:layout_width="match_parent"
74 android:layout_height="wrap_content"
75 android:layout_marginTop="14dp"
76 android:singleLine="true"
77 android:text="@string/data_reduction_original_size_label"
78 android:textColor="?android:attr/textColorPrimary"
79 android:textSize="14sp" />
80
81 <TextView
82 android:layout_width="match_parent"
83 android:layout_height="wrap_content"
84 android:layout_marginTop="4dp"
85 android:singleLine="true"
86 android:text="@string/data_reduction_compressed_size_label"
87 android:textColor="?android:attr/textColorPrimary"
88 android:textSize="14sp" />
89 </LinearLayout>
90
91 </FrameLayout>
92
93 <LinearLayout
94 android:layout_width="wrap_content"
95 android:layout_height="wrap_content"
96 android:orientation="vertical"
97 android:paddingStart="10dp" >
98
99 <TextView
100 android:id="@+id/data_reduction_original_size"
101 android:layout_width="wrap_content"
102 android:layout_height="wrap_content"
103 android:layout_marginTop="14dp"
104 android:textColor="?android:attr/textColorPrimary"
105 android:textSize="14sp"
106 android:textStyle="bold" />
107
108 <TextView
109 android:id="@+id/data_reduction_compressed_size"
110 android:layout_width="wrap_content"
111 android:layout_height="wrap_content"
112 android:layout_marginTop="4dp"
113 android:textColor="?android:attr/textColorPrimary"
114 android:textSize="14sp"
115 android:textStyle="bold" />
116 </LinearLayout>
117
118 </LinearLayout>
119
120 <TextView 108 <TextView
121 android:id="@+id/data_reduction_proxy_unreachable" 109 android:id="@+id/data_reduction_proxy_unreachable"
122 android:layout_width="match_parent" 110 android:layout_width="match_parent"
123 android:layout_height="wrap_content" 111 android:layout_height="wrap_content"
124 android:layout_marginBottom="20dp" 112 android:layout_marginBottom="20dp"
125 android:layout_marginTop="20dp" 113 android:layout_marginTop="20dp"
126 android:drawableStart="@drawable/exclamation_triangle" 114 android:drawableStart="@drawable/exclamation_triangle"
127 android:drawablePadding="6dp" 115 android:drawablePadding="6dp"
128 android:text="@string/data_reduction_proxy_unreachable_warn" 116 android:text="@string/data_reduction_proxy_unreachable_warn"
129 android:textColor="?android:attr/textColorPrimary" 117 android:textColor="?android:attr/textColorPrimary"
130 android:textSize="14sp" /> 118 android:textSize="14sp" />
119
120 <include layout="@layout/data_usage_breakdown" />
131 121
132 </LinearLayout> 122 </LinearLayout>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698