diff options
author | Jeff Sharkey <jsharkey@android.com> | 2011-06-23 22:15:54 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2011-06-23 22:30:05 -0700 |
commit | f54f435f1f3215b39798c671fc64344d1867de4e (patch) | |
tree | 2bb886af30f4ff69b414875f68b7d9ad93076bbb /res/layout | |
parent | 255e71eb53255b540e7a061d8c7ee7d768e15d2e (diff) | |
download | packages_apps_settings-f54f435f1f3215b39798c671fc64344d1867de4e.zip packages_apps_settings-f54f435f1f3215b39798c671fc64344d1867de4e.tar.gz packages_apps_settings-f54f435f1f3215b39798c671fc64344d1867de4e.tar.bz2 |
More data usage chart iteration, app details.
Moved app details back into single Fragment to support animations and
template tabs. Show the network in background behind app details
chart series to match designs.
Clamping sweeps at axis boundaries.
Bug: 4813014, 4598460, 4818029
Change-Id: I72c0b21ee1d595e4da31d293ae0dab9e801041f3
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/data_usage_chart.xml | 14 | ||||
-rw-r--r-- | res/layout/data_usage_detail.xml | 66 | ||||
-rw-r--r-- | res/layout/data_usage_header.xml | 5 |
3 files changed, 43 insertions, 42 deletions
diff --git a/res/layout/data_usage_chart.xml b/res/layout/data_usage_chart.xml index 5fd640f..199a38e 100644 --- a/res/layout/data_usage_chart.xml +++ b/res/layout/data_usage_chart.xml @@ -17,6 +17,7 @@ <com.android.settings.widget.DataUsageChartView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:settings="http://schemas.android.com/apk/res/com.android.settings" + android:id="@+id/chart" android:layout_width="match_parent" android:layout_height="220dip" android:padding="16dip"> @@ -40,11 +41,19 @@ settings:fillColor="#c050ade5" settings:fillColorSecondary="#88566abc" /> + <com.android.settings.widget.ChartNetworkSeriesView + android:id="@+id/detail_series" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_gravity="left|bottom" + settings:strokeColor="#d88d3a" + settings:fillColor="#c0ba7f3e" + settings:fillColorSecondary="#0000" /> + <com.android.settings.widget.ChartSweepView android:id="@+id/sweep_left" android:layout_width="wrap_content" android:layout_height="match_parent" - android:layout_gravity="center_horizontal" settings:sweepDrawable="@drawable/data_sweep_left" settings:followAxis="horizontal" settings:showLabel="false" /> @@ -53,7 +62,6 @@ android:id="@+id/sweep_right" android:layout_width="wrap_content" android:layout_height="match_parent" - android:layout_gravity="center_horizontal" settings:sweepDrawable="@drawable/data_sweep_right" settings:followAxis="horizontal" settings:showLabel="false" /> @@ -62,7 +70,6 @@ android:id="@+id/sweep_limit" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_gravity="center_vertical" settings:sweepDrawable="@drawable/data_sweep_limit" settings:followAxis="vertical" settings:showLabel="true" /> @@ -71,7 +78,6 @@ android:id="@+id/sweep_warning" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_gravity="center_vertical" settings:sweepDrawable="@drawable/data_sweep_warning" settings:followAxis="vertical" settings:showLabel="true" /> diff --git a/res/layout/data_usage_detail.xml b/res/layout/data_usage_detail.xml index 9415b3f..2c8e490 100644 --- a/res/layout/data_usage_detail.xml +++ b/res/layout/data_usage_detail.xml @@ -14,43 +14,35 @@ limitations under the License. --> -<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/app_detail" android:layout_width="match_parent" - android:layout_height="match_parent"> + 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" /> + + <TextView + android:id="@+id/app_subtitle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="16dip" /> + + <Button + android:id="@+id/app_settings" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_margin="16dip" + android:text="@string/data_usage_app_settings" /> + <LinearLayout + android:id="@+id/app_switches" android:layout_width="match_parent" - android:layout_height="match_parent" - android:orientation="vertical"> - - <FrameLayout - android:id="@+id/chart_container" - android:layout_width="match_parent" - android:layout_height="233dip" /> - - <TextView - android:id="@android:id/title" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_marginLeft="16dip" /> - - <TextView - android:id="@android:id/text1" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_marginLeft="16dip" /> - - <Button - android:id="@+id/data_usage_app_settings" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_margin="16dip" - android:text="@string/data_usage_app_settings" /> - - <LinearLayout - android:id="@+id/switches" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:orientation="vertical" /> - - </LinearLayout> -</ScrollView> + android:layout_height="wrap_content" + android:orientation="vertical" /> + +</LinearLayout> diff --git a/res/layout/data_usage_header.xml b/res/layout/data_usage_header.xml index 8e6f054..3f4ca5b 100644 --- a/res/layout/data_usage_header.xml +++ b/res/layout/data_usage_header.xml @@ -20,7 +20,7 @@ android:orientation="vertical"> <LinearLayout - android:id="@+id/switches" + android:id="@+id/network_switches" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" @@ -48,4 +48,7 @@ </LinearLayout> + <include layout="@layout/data_usage_chart" /> + <include layout="@layout/data_usage_detail" /> + </LinearLayout> |