diff options
author | Jeff Sharkey <jsharkey@android.com> | 2011-08-04 21:17:23 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2011-08-04 21:20:03 -0700 |
commit | d39c6e4083f1212519d5dc14f64132a10f2b7c7a (patch) | |
tree | 1d6383be1b378204301ec20d2d7b957f9d23ed9d /res | |
parent | ce919e40c9def53dad0dfd541060147939024827 (diff) | |
download | packages_apps_Settings-d39c6e4083f1212519d5dc14f64132a10f2b7c7a.zip packages_apps_Settings-d39c6e4083f1212519d5dc14f64132a10f2b7c7a.tar.gz packages_apps_Settings-d39c6e4083f1212519d5dc14f64132a10f2b7c7a.tar.bz2 |
Data usage app icons and details, chart labels.
Add app icons into both summary list and details pane. Also show list
of all applications merged under a UID. Draw dates on chart axis, and
avoid flashing policy sweeps when switching networks in detail mode.
Bug: 5087283, 5038812
Change-Id: I1dcd03ca85b517f8726452af8a46b4be9b3d20f1
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/data_usage_app_title.xml | 22 | ||||
-rw-r--r-- | res/layout/data_usage_chart.xml | 2 | ||||
-rw-r--r-- | res/layout/data_usage_detail.xml | 21 | ||||
-rw-r--r-- | res/layout/data_usage_header.xml | 2 | ||||
-rw-r--r-- | res/layout/data_usage_item.xml | 10 | ||||
-rw-r--r-- | res/values/strings.xml | 2 |
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> |