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 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     18     android:id="@+id/app_detail"
     19     android:layout_width="match_parent"
     20     android:layout_height="wrap_content"
     21     android:orientation="vertical"
     22     android:visibility="gone">
     23 
     24     <LinearLayout
     25         android:layout_width="match_parent"
     26         android:layout_height="wrap_content"
     27         android:layout_marginStart="?android:attr/listPreferredItemPaddingStart"
     28         android:layout_marginEnd="?android:attr/listPreferredItemPaddingEnd"
     29         android:orientation="horizontal">
     30 
     31         <LinearLayout
     32             android:layout_width="0dip"
     33             android:layout_height="wrap_content"
     34             android:layout_weight="1"
     35             android:layout_marginTop="8dip"
     36             android:layout_marginEnd="8dip"
     37             android:orientation="vertical">
     38 
     39             <ImageView
     40                 android:id="@+id/app_icon"
     41                 android:layout_width="48dip"
     42                 android:layout_height="48dip"
     43                 android:scaleType="centerInside"
     44                 android:contentDescription="@null" />
     45 
     46             <LinearLayout
     47                 android:id="@+id/app_titles"
     48                 android:layout_width="match_parent"
     49                 android:layout_height="wrap_content"
     50                 android:layout_marginTop="8dip"
     51                 android:orientation="vertical"
     52                 android:textAlignment="viewStart" />
     53 
     54             <TextView
     55                 android:layout_width="match_parent"
     56                 android:layout_height="wrap_content"
     57                 android:layout_marginTop="8dip"
     58                 android:textColor="#d88d3a"
     59                 android:text="@string/data_usage_label_foreground"
     60                 android:textAlignment="viewStart" />
     61 
     62             <TextView
     63                 android:id="@+id/app_foreground"
     64                 android:layout_width="match_parent"
     65                 android:layout_height="wrap_content"
     66                 android:textColor="#d88d3a"
     67                 android:textAlignment="viewStart" />
     68 
     69             <TextView
     70                 android:layout_width="match_parent"
     71                 android:layout_height="wrap_content"
     72                 android:layout_marginTop="8dip"
     73                 android:text="@string/data_usage_label_background"
     74                 android:textAlignment="viewStart" />
     75 
     76             <TextView
     77                 android:id="@+id/app_background"
     78                 android:layout_width="match_parent"
     79                 android:layout_height="wrap_content"
     80                 android:textAlignment="viewStart" />
     81 
     82         </LinearLayout>
     83 
     84         <com.android.settings.widget.PieChartView
     85             android:id="@+id/app_pie_chart"
     86             android:layout_width="160dip"
     87             android:layout_height="160dip" />
     88 
     89     </LinearLayout>
     90 
     91     <Button
     92         android:id="@+id/app_settings"
     93         android:layout_width="match_parent"
     94         android:layout_height="wrap_content"
     95         android:layout_marginStart="?android:attr/listPreferredItemPaddingStart"
     96         android:layout_marginEnd="?android:attr/listPreferredItemPaddingEnd"
     97         android:layout_marginTop="16dip"
     98         android:layout_marginBottom="16dip"
     99         android:text="@string/data_usage_app_settings" />
    100 
    101     <LinearLayout
    102         android:id="@+id/app_switches"
    103         android:layout_width="match_parent"
    104         android:layout_height="wrap_content"
    105         android:orientation="vertical" />
    106 
    107 </LinearLayout>
    108