Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2011 The Android Open Source Project
      3 
      4      Licensed under the Apache License, Version 2.0 (the "License");
      5      you may not use this file except in compliance with the License.
      6      You may obtain a copy of the License at
      7 
      8           http://www.apache.org/licenses/LICENSE-2.0
      9 
     10      Unless required by applicable law or agreed to in writing, software
     11      distributed under the License is distributed on an "AS IS" BASIS,
     12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13      See the License for the specific language governing permissions and
     14      limitations under the License.
     15 -->
     16 
     17 <com.android.settings.widget.ChartDataUsageView
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
     20     android:id="@+id/chart"
     21     android:layout_width="match_parent"
     22     android:layout_height="@dimen/data_usage_chart_height"
     23     android:layout_marginStart="-16dip"
     24     android:layout_marginEnd="-16dip"
     25     android:layout_marginBottom="-32dip"
     26     android:paddingStart="24dip"
     27     android:paddingEnd="24dip"
     28     android:paddingTop="16dip"
     29     android:paddingBottom="48dip"
     30     settings:optimalWidth="@dimen/data_usage_chart_optimalWidth"
     31     settings:optimalWidthWeight="0.4">
     32 
     33     <com.android.settings.widget.ChartGridView
     34         android:id="@+id/grid"
     35         android:layout_width="match_parent"
     36         android:layout_height="match_parent"
     37         android:layout_gravity="start|bottom"
     38         settings:primaryDrawable="@drawable/data_grid_primary"
     39         settings:secondaryDrawable="@drawable/data_grid_secondary"
     40         settings:borderDrawable="@drawable/data_grid_border"
     41         settings:labelColor="@android:color/holo_blue_light" />
     42 
     43     <com.android.settings.widget.ChartNetworkSeriesView
     44         android:id="@+id/series"
     45         android:layout_width="match_parent"
     46         android:layout_height="match_parent"
     47         android:layout_gravity="start|bottom"
     48         settings:strokeColor="@android:color/holo_blue_light"
     49         settings:fillColor="#c033b5e5"
     50         settings:fillColorSecondary="#6633b5e5" />
     51 
     52     <com.android.settings.widget.ChartNetworkSeriesView
     53         android:id="@+id/detail_series"
     54         android:layout_width="match_parent"
     55         android:layout_height="match_parent"
     56         android:layout_gravity="start|bottom"
     57         settings:strokeColor="#d88d3a"
     58         settings:fillColor="#c0ba7f3e"
     59         settings:fillColorSecondary="#60ba7f3e" />
     60 
     61     <com.android.settings.widget.ChartSweepView
     62         android:id="@+id/sweep_left"
     63         android:layout_width="wrap_content"
     64         android:layout_height="match_parent"
     65         settings:sweepDrawable="@drawable/data_sweep_left"
     66         settings:followAxis="horizontal"
     67         settings:neighborMargin="5dip" />
     68 
     69     <com.android.settings.widget.ChartSweepView
     70         android:id="@+id/sweep_right"
     71         android:layout_width="wrap_content"
     72         android:layout_height="match_parent"
     73         settings:sweepDrawable="@drawable/data_sweep_right"
     74         settings:followAxis="horizontal"
     75         settings:neighborMargin="5dip" />
     76 
     77     <com.android.settings.widget.ChartSweepView
     78         android:id="@+id/sweep_warning"
     79         android:layout_width="match_parent"
     80         android:layout_height="wrap_content"
     81         android:nextFocusUp="@+id/sweep_limit"
     82         settings:sweepDrawable="@drawable/data_sweep_warning"
     83         settings:followAxis="vertical"
     84         settings:neighborMargin="5dip"
     85         settings:labelSize="60dip"
     86         settings:labelTemplate="@string/data_usage_sweep_warning"
     87         settings:labelColor="#f7931d" />
     88 
     89     <com.android.settings.widget.ChartSweepView
     90         android:id="@+id/sweep_limit"
     91         android:layout_width="match_parent"
     92         android:layout_height="wrap_content"
     93         android:nextFocusDown="@+id/sweep_warning"
     94         settings:sweepDrawable="@drawable/data_sweep_limit"
     95         settings:followAxis="vertical"
     96         settings:neighborMargin="5dip"
     97         settings:labelSize="60dip"
     98         settings:labelTemplate="@string/data_usage_sweep_limit"
     99         settings:labelColor="#c01a2c" />
    100 
    101 </com.android.settings.widget.ChartDataUsageView>
    102