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

Unified Diff: third_party/android_snippets/java/res/layout/data_usage_chart.xml

Issue 866813004: Add third_party/android_data_chart for data chart widget. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: st Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/android_snippets/java/res/layout/data_usage_chart.xml
diff --git a/third_party/android_snippets/java/res/layout/data_usage_chart.xml b/third_party/android_snippets/java/res/layout/data_usage_chart.xml
new file mode 100644
index 0000000000000000000000000000000000000000..d7ae1917f4e4138bc079bf158b816f26dfde8921
--- /dev/null
+++ b/third_party/android_snippets/java/res/layout/data_usage_chart.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<!-- xmlns:settings="http://schemas.android.com/apk/res/com.google.android.apps.chrome" -->
+
+<com.google.android.apps.chrome.third_party.datausagechart.ChartDataUsageView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:settings="http://schemas.android.com/apk/res-auto"
+ android:id="@+id/chart"
+ android:layout_width="match_parent"
+ android:layout_height="@dimen/data_usage_chart_height"
+ android:paddingTop="16dp"
+ android:paddingBottom="8dp" >
+
+ <com.google.android.apps.chrome.third_party.datausagechart.ChartNetworkSeriesView
+ android:id="@+id/series"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_gravity="start|bottom"
+ android:background="@color/data_reduction_chart_background_color"
+ settings:strokeColor="@color/data_reduction_original_color"
+ settings:fillColor="@color/data_reduction_original_color"
+ settings:fillColorSecondary="@color/data_reduction_original_color" />
+
+ <com.google.android.apps.chrome.third_party.datausagechart.ChartNetworkSeriesView
+ android:id="@+id/detail_series"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_gravity="start|bottom"
+ settings:strokeColor="@color/data_reduction_compressed_color"
+ settings:fillColor="@color/data_reduction_compressed_color"
+ settings:fillColorSecondary="@color/data_reduction_compressed_color" />
+</com.google.android.apps.chrome.third_party.datausagechart.ChartDataUsageView>

Powered by Google App Engine
This is Rietveld 408576698