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 23 <LinearLayout 24 android:layout_width="match_parent" 25 android:layout_height="wrap_content" 26 android:layout_marginLeft="@*android:dimen/preference_item_padding_side" 27 android:layout_marginRight="@*android:dimen/preference_item_padding_side" 28 android:orientation="horizontal"> 29 30 <LinearLayout 31 android:layout_width="0dip" 32 android:layout_height="wrap_content" 33 android:layout_weight="1" 34 android:layout_marginRight="@*android:dimen/preference_item_padding_inner" 35 android:orientation="vertical"> 36 37 <ImageView 38 android:id="@+id/app_icon" 39 android:layout_width="48dip" 40 android:layout_height="48dip" 41 android:scaleType="centerInside" /> 42 43 <LinearLayout 44 android:id="@+id/app_titles" 45 android:layout_width="match_parent" 46 android:layout_height="wrap_content" 47 android:layout_marginTop="8dip" 48 android:orientation="vertical" /> 49 50 <TextView 51 android:layout_width="match_parent" 52 android:layout_height="wrap_content" 53 android:layout_marginTop="8dip" 54 android:textColor="#d88d3a" 55 android:text="@string/data_usage_label_foreground" /> 56 <TextView 57 android:id="@+id/app_foreground" 58 android:layout_width="match_parent" 59 android:layout_height="wrap_content" 60 android:textColor="#d88d3a" /> 61 62 <TextView 63 android:layout_width="match_parent" 64 android:layout_height="wrap_content" 65 android:layout_marginTop="8dip" 66 android:text="@string/data_usage_label_background" /> 67 <TextView 68 android:id="@+id/app_background" 69 android:layout_width="match_parent" 70 android:layout_height="wrap_content" /> 71 72 </LinearLayout> 73 74 <com.android.settings.widget.PieChartView 75 android:id="@+id/app_pie_chart" 76 android:layout_width="160dip" 77 android:layout_height="160dip" /> 78 79 </LinearLayout> 80 81 <Button 82 android:id="@+id/app_settings" 83 android:layout_width="match_parent" 84 android:layout_height="wrap_content" 85 android:layout_marginLeft="@*android:dimen/preference_item_padding_side" 86 android:layout_marginRight="@*android:dimen/preference_item_padding_side" 87 android:layout_marginTop="16dip" 88 android:layout_marginBottom="16dip" 89 android:text="@string/data_usage_app_settings" /> 90 91 <LinearLayout 92 android:id="@+id/app_switches" 93 android:layout_width="match_parent" 94 android:layout_height="wrap_content" 95 android:orientation="vertical" /> 96 97</LinearLayout> 98