Roll src/third_party/WebKit 3529d49:06e8485 (svn 202554:202555)
[chromium-blink-merge.git] / chrome / android / java / res / layout / data_reduction_stats_layout.xml
blob86092ed9b2d09471fdcba422a60edca6d55823fd
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" >
15     <TextView
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" />
24     <LinearLayout
25         android:layout_width="match_parent"
26         android:layout_height="wrap_content" >
28         <TextView
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" />
36         <TextView
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" />
43     </LinearLayout>
45     <LinearLayout
46         android:layout_width="match_parent"
47         android:layout_height="wrap_content"
48         android:orientation="horizontal" >
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" />
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" >
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" >
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" />
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>
91         </FrameLayout>
93         <LinearLayout
94             android:layout_width="wrap_content"
95             android:layout_height="wrap_content"
96             android:orientation="vertical"
97             android:paddingStart="10dp" >
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" />
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>
118     </LinearLayout>
120     <TextView
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" />
132 </LinearLayout>