1 <?xml version="1.0" encoding="utf-8"?>
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
4 found in the LICENSE file. -->
6 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
7 xmlns:tools="http://schemas.android.com/tools"
8 android:id="@+id/data_reduction_stats_container"
9 android:layout_width="match_parent"
10 android:layout_height="wrap_content"
11 android:clipChildren="false"
12 android:clipToPadding="false"
13 android:orientation="vertical" >
16 android:layout_width="match_parent"
17 android:layout_height="wrap_content"
18 android:fadingEdge="horizontal"
19 android:text="@string/data_reduction_stats_title"
20 android:textAppearance="@style/PreferenceCategoryTextStyle" />
22 <include layout="@layout/data_usage_chart" />
25 android:layout_width="match_parent"
26 android:layout_height="wrap_content" >
29 android:id="@+id/data_reduction_start_date"
30 android:layout_width="0dp"
31 android:layout_height="wrap_content"
32 android:layout_weight="1"
33 android:textAppearance="@style/PreferenceSummary"
34 android:textSize="14sp" />
37 android:id="@+id/data_reduction_end_date"
38 android:layout_width="wrap_content"
39 android:layout_height="wrap_content"
40 android:textAppearance="@style/PreferenceSummary"
41 android:textSize="14sp" />
46 android:layout_width="match_parent"
47 android:layout_height="wrap_content"
48 android:orientation="horizontal" >
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" />
59 android:layout_height="wrap_content"
60 android:layout_width="0dp"
61 android:layout_weight="1"
62 android:paddingEnd="6dp"
63 android:paddingStart="20dp" >
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" >
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" />
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" />
94 android:layout_width="wrap_content"
95 android:layout_height="wrap_content"
96 android:orientation="vertical"
97 android:paddingStart="10dp" >
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" />
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" />
121 android:id="@+id/data_reduction_proxy_unreachable"
122 android:layout_width="match_parent"
123 android:layout_height="wrap_content"
124 android:layout_marginBottom="20dp"
125 android:layout_marginTop="20dp"
126 android:drawableStart="@drawable/exclamation_triangle"
127 android:drawablePadding="6dp"
128 android:text="@string/data_reduction_proxy_unreachable_warn"
129 android:textColor="?android:attr/textColorPrimary"
130 android:textSize="14sp" />