blob: 58d2097bed361af38cb669bcc6f7aff871d2d3fa [file]
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2015 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/data_reduction_stats_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clipChildren="false"
android:clipToPadding="false"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:baselineAligned="false"
android:orientation="horizontal" >
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="0dp"
android:layout_weight="1"
android:orientation="vertical" >
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:text="@string/data_reduction_savings_label"
android:textAppearance="@style/PreferenceCategoryTextStyle" />
<TextView
android:id="@+id/data_reduction_savings"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingStart="3dp"
android:textAppearance="@style/PreferenceCategoryTextStyle" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:orientation="horizontal" >
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:text="@string/data_reduction_usage_label"
android:textAppearance="@style/DataReductionPrefSecondaryStyle" />
<TextView
android:id="@+id/data_reduction_usage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingStart="3dp"
android:textAppearance="@style/DataReductionPrefSecondaryStyle" />
</LinearLayout>
</LinearLayout>
<TextView
android:id="@+id/data_reduction_percent"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_marginTop="0dp"
android:includeFontPadding="false"
android:textColor="@color/light_active_color"
android:textSize="34sp" />
</LinearLayout>
<include layout="@layout/data_usage_chart" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/data_reduction_start_date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="@style/PreferenceSummary"
android:textSize="14sp" />
<TextView
android:id="@+id/data_reduction_end_date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="@style/PreferenceSummary"
android:textSize="14sp" />
</FrameLayout>
<TextView
android:id="@+id/data_reduction_proxy_unreachable"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:layout_marginTop="20dp"
android:drawableStart="@drawable/exclamation_triangle"
android:drawablePadding="6dp"
android:text="@string/data_reduction_proxy_unreachable_warn"
android:textColor="?android:attr/textColorPrimary"
android:textSize="14sp" />
<include layout="@layout/data_usage_breakdown" />
</LinearLayout>