summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2011-08-05 00:14:43 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-08-05 00:14:43 -0700
commit5c2d982f8e2bc1fc58ea89d747fde2c581095b37 (patch)
treebaff29cae55d7f6ac8af24ea5b40de2f9d119c8c /res
parent48a6de66bbb59041f40b676662b2834a2f842222 (diff)
parentd39c6e4083f1212519d5dc14f64132a10f2b7c7a (diff)
downloadpackages_apps_Settings-5c2d982f8e2bc1fc58ea89d747fde2c581095b37.zip
packages_apps_Settings-5c2d982f8e2bc1fc58ea89d747fde2c581095b37.tar.gz
packages_apps_Settings-5c2d982f8e2bc1fc58ea89d747fde2c581095b37.tar.bz2
Merge "Data usage app icons and details, chart labels."
Diffstat (limited to 'res')
-rw-r--r--res/layout/data_usage_app_title.xml22
-rw-r--r--res/layout/data_usage_chart.xml2
-rw-r--r--res/layout/data_usage_detail.xml21
-rw-r--r--res/layout/data_usage_header.xml2
-rw-r--r--res/layout/data_usage_item.xml10
-rw-r--r--res/values/strings.xml2
6 files changed, 47 insertions, 12 deletions
diff --git a/res/layout/data_usage_app_title.xml b/res/layout/data_usage_app_title.xml
new file mode 100644
index 0000000..baaa685
--- /dev/null
+++ b/res/layout/data_usage_app_title.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2011 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.
+-->
+
+<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:singleLine="true"
+ android:ellipsize="marquee"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
diff --git a/res/layout/data_usage_chart.xml b/res/layout/data_usage_chart.xml
index 3ae8a03..c1f6c27 100644
--- a/res/layout/data_usage_chart.xml
+++ b/res/layout/data_usage_chart.xml
@@ -30,7 +30,7 @@
settings:primaryDrawable="@drawable/data_grid_primary"
settings:secondaryDrawable="@drawable/data_grid_secondary"
settings:borderDrawable="@drawable/data_grid_border"
- settings:labelColor="#24aae1" />
+ settings:labelColor="#667bb5" />
<com.android.settings.widget.ChartNetworkSeriesView
android:id="@+id/series"
diff --git a/res/layout/data_usage_detail.xml b/res/layout/data_usage_detail.xml
index 2c8e490..8d0c0cc 100644
--- a/res/layout/data_usage_detail.xml
+++ b/res/layout/data_usage_detail.xml
@@ -20,17 +20,20 @@
android:layout_height="match_parent"
android:orientation="vertical">
- <TextView
- android:id="@+id/app_title"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginLeft="16dip" />
+ <ImageView
+ android:id="@+id/app_icon"
+ android:layout_width="48dip"
+ android:layout_height="48dip"
+ android:layout_marginLeft="16dip"
+ android:scaleType="centerInside" />
- <TextView
- android:id="@+id/app_subtitle"
+ <LinearLayout
+ android:id="@+id/app_titles"
android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginLeft="16dip" />
+ android:layout_height="match_parent"
+ android:layout_marginLeft="16dip"
+ android:layout_marginTop="8dip"
+ android:orientation="vertical" />
<Button
android:id="@+id/app_settings"
diff --git a/res/layout/data_usage_header.xml b/res/layout/data_usage_header.xml
index 9602898..528fc34 100644
--- a/res/layout/data_usage_header.xml
+++ b/res/layout/data_usage_header.xml
@@ -43,6 +43,8 @@
android:paddingRight="16dip"
android:paddingTop="8dip"
android:paddingBottom="8dip"
+ android:singleLine="true"
+ android:ellipsize="marquee"
android:textAppearance="?android:attr/textAppearanceSmall" />
<TextView
diff --git a/res/layout/data_usage_item.xml b/res/layout/data_usage_item.xml
index 36f8b4d..b41d486 100644
--- a/res/layout/data_usage_item.xml
+++ b/res/layout/data_usage_item.xml
@@ -21,7 +21,15 @@
android:paddingRight="16dip"
android:paddingTop="8dip"
android:paddingBottom="8dip"
- android:columnCount="2">
+ android:columnCount="3">
+
+ <ImageView
+ android:id="@android:id/icon"
+ android:layout_width="48dip"
+ android:layout_height="48dip"
+ android:layout_rowSpan="2"
+ android:layout_marginRight="8dip"
+ android:scaleType="centerInside" />
<TextView
android:id="@android:id/title"
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 7315863..3684dcd 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -3465,7 +3465,7 @@ found in the list of installed applications.</string>
<!-- Combination of total network bytes sent and received by an application. [CHAR LIMIT=NONE] -->
<string name="data_usage_received_sent"><xliff:g id="received" example="128KB">%1$s</xliff:g> received, <xliff:g id="sent" example="1.3GB">%2$s</xliff:g> sent</string>
<!-- Label displaying total network data transferred during a specific time period. [CHAR LIMIT=64] -->
- <string name="data_usage_total_during_range">Data usage: <xliff:g id="total" example="128KB">%1$s</xliff:g> between <xliff:g id="range" example="Jul 1 - Jul 31">%2$s</xliff:g></string>
+ <string name="data_usage_total_during_range">Data usage: <xliff:g id="total" example="128KB">%1$s</xliff:g> on <xliff:g id="range" example="Jul 1 - Jul 31">%2$s</xliff:g></string>
<!-- Button at the bottom of the CryptKeeper screen to make an emergency call. -->
<string name="cryptkeeper_emergency_call">Emergency call</string>