diff options
author | Jeff Sharkey <jsharkey@android.com> | 2011-06-10 13:31:21 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2011-06-10 16:17:21 -0700 |
commit | 8a50364a71e7c261b54840210f8bacff5abecb34 (patch) | |
tree | 6ddcd421fd26829af3c6b0a6bcd656c6986dc182 /res/menu | |
parent | 86432504d356e3de7e63b48251f653245bcafd32 (diff) | |
download | packages_apps_Settings-8a50364a71e7c261b54840210f8bacff5abecb34.zip packages_apps_Settings-8a50364a71e7c261b54840210f8bacff5abecb34.tar.gz packages_apps_Settings-8a50364a71e7c261b54840210f8bacff5abecb34.tar.bz2 |
Iterating on data usage; tabs, scrolling, cycles.
Added ActionBar items to control complexity of data surfaced; checked
state causes tabs to be shown/hidden for "Mobile", "2G-3G", "4G", and
"Wi-Fi" network templates. Loading historical stats and policy from
system services based on selected tab.
Change entire body under tabs to scroll, treating network options and
chart as ListView headers. Teach chart sweep to disable intercept to
play with ListView, and draw sweep disabled as dashed line. Hijacking
Preference views for toggles to offer consistency. No policy updates
are persisted yet.
Based on available historical network stats and policy cycle reset day,
build list of user-selectable cycles. Wired up chart to display cycle
data and reset inspection region to last week of available data.
Change-Id: Ia561578276fa23908b745fbc06a6ef828d9ccc2e
Diffstat (limited to 'res/menu')
-rw-r--r-- | res/menu/data_usage.xml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/res/menu/data_usage.xml b/res/menu/data_usage.xml new file mode 100644 index 0000000..a95c074 --- /dev/null +++ b/res/menu/data_usage.xml @@ -0,0 +1,33 @@ +<?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. +--> + +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + <item + android:id="@+id/action_settings" + android:icon="@drawable/ic_sysbar_quicksettings" + android:showAsAction="always"> + <menu> + <item + android:id="@+id/action_split_4g" + android:title="@string/data_usage_menu_split_4g" + android:checkable="true" /> + <item + android:id="@+id/action_show_wifi" + android:title="@string/data_usage_menu_show_wifi" + android:checkable="true" /> + </menu> + </item> +</menu> |