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

Side by Side Diff: chrome/android/java/res/layout/data_usage_breakdown.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
(Empty)
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2017 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. -->
5
6 <org.chromium.chrome.browser.preferences.datareduction.DataReductionSiteBreakdow nView
7 xmlns:android="http://schemas.android.com/apk/res/android"
8 xmlns:settings="http://schemas.android.com/apk/res-auto"
9 android:id="@+id/breakdown"
10 android:layout_height="wrap_content"
11 android:layout_width="match_parent"
12 android:orientation="vertical"
13 android:visibility="gone">
14
15 <TextView
16 android:id="@+id/data_reduction_data_usage_breakdown_title"
17 android:layout_width="match_parent"
18 android:layout_height="wrap_content"
19 android:layout_marginTop="26dp"
20 android:paddingBottom="10dp"
21 android:singleLine="true"
22 android:text="@string/data_reduction_data_usage_breakdown_title"
23 android:textAppearance="@style/PreferenceCategoryTextStyle" />
24
25 <TableLayout
26 android:id="@+id/data_reduction_proxy_breakdown_table"
27 android:layout_width="match_parent"
28 android:layout_height="wrap_content"
29 android:divider="?android:attr/dividerHorizontal"
30 android:showDividers="middle"
31 android:stretchColumns="0">
32
33 <TableRow
34 android:id="@+id/data_reduction_proxy_breakdown_table_labels"
35 android:layout_height="wrap_content"
36 android:layout_width="match_parent"
37 android:orientation="horizontal">
38
39 <TextView
40 android:text="@string/data_reduction_breakdown_site_title"
41 android:layout_width="0dp"
42 android:layout_weight="1"
43 android:textColor="?android:attr/textColorSecondary"
44 style="@style/DataUsageBreakdownColumnLabel" />
45
46 <TextView
47 android:text="@string/data_reduction_breakdown_used_title"
48 android:layout_width="wrap_content"
49 android:gravity="end"
50 android:paddingStart="10dp"
51 android:textColor="?android:attr/textColorPrimary"
52 style="@style/DataUsageBreakdownColumnLabel" />
53
54 <TextView
55 android:text="@string/data_reduction_breakdown_saved_title"
56 android:layout_width="wrap_content"
57 android:gravity="end"
58 android:paddingStart="24dp"
59 android:textColor="?android:attr/textColorSecondary"
60 style="@style/DataUsageBreakdownColumnLabel" />
61
62 </TableRow>
63
64 </TableLayout>
65
66 <Button
67 android:id="@+id/data_reduction_reset_statistics"
68 android:layout_width="match_parent"
69 android:layout_height="wrap_content"
70 android:layout_gravity="center"
71 android:layout_marginTop="24dp"
72 android:text="@string/data_reduction_usage_reset_statistics_button"
73 android:textAllCaps="true"
74 android:textColor="@color/light_active_color"
75 android:textSize="14sp"
76 style="@style/ButtonCompatBorderless" />
77
78 </org.chromium.chrome.browser.preferences.datareduction.DataReductionSiteBreakdo wnView>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698