1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2009 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 <ScrollView 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent"> 21 <LinearLayout 22 android:id="@+id/all_details" 23 android:layout_width="match_parent" 24 android:layout_height="match_parent" 25 android:paddingTop="5dip" 26 android:paddingBottom="5dip" 27 android:orientation="vertical"> 28 29 <LinearLayout 30 android:layout_width="match_parent" 31 android:layout_height="wrap_content" 32 android:minHeight="?android:attr/listPreferredItemHeight" 33 android:orientation="horizontal" 34 android:gravity="center_vertical" 35 android:paddingLeft="12dip" 36 android:paddingRight="?android:attr/scrollbarSize"> 37 38 <ImageView 39 android:id="@+id/icon" 40 android:layout_width="48dip" 41 android:layout_height="wrap_content" 42 android:layout_marginRight="6dip" 43 android:layout_gravity="center" /> 44 45 <RelativeLayout 46 android:layout_width="wrap_content" 47 android:layout_height="wrap_content" 48 android:layout_marginRight="8dip" 49 android:layout_marginTop="2dip" 50 android:layout_marginBottom="6dip" 51 android:layout_weight="1"> 52 53 <TextView android:id="@+id/name" 54 android:layout_width="wrap_content" 55 android:layout_height="wrap_content" 56 android:singleLine="true" 57 android:layout_marginTop="2dip" 58 android:layout_alignParentLeft="true" 59 android:layout_alignParentTop="true" 60 android:layout_toLeftOf="@+id/battery_percentage" 61 android:ellipsize="marquee" 62 android:textAppearance="?android:attr/textAppearanceMedium"/> 63 <TextView android:id="@+id/battery_percentage" 64 android:layout_width="wrap_content" 65 android:layout_height="wrap_content" 66 android:singleLine="true" 67 android:layout_alignParentRight="true" 68 android:layout_alignBottom="@+id/name" 69 android:layout_gravity="bottom" 70 android:textAppearance="?android:attr/textAppearanceSmall" 71 android:textStyle="bold"/> 72 <ImageView 73 android:id="@+id/gauge" 74 android:background="#80404040" 75 android:layout_height="wrap_content" 76 android:layout_width="match_parent" 77 android:layout_marginTop="5dip" 78 android:layout_below="@id/battery_percentage" 79 android:layout_gravity="center_vertical" /> 80 <TextView android:id="@+id/summary" 81 android:layout_width="wrap_content" 82 android:layout_height="wrap_content" 83 android:layout_alignLeft="@id/gauge" 84 android:layout_below="@id/gauge" 85 android:textAppearance="?android:attr/textAppearanceSmall" 86 /> 87 </RelativeLayout> 88 </LinearLayout> 89 90 <!-- Force stop and report buttons --> 91 <LinearLayout 92 android:id="@+id/two_buttons_panel" 93 android:layout_width="match_parent" 94 android:layout_height="wrap_content" 95 android:paddingBottom="6dip" 96 android:orientation="vertical"> 97 <include 98 layout="@layout/two_buttons_panel"/> 99 </LinearLayout> 100 101 <TextView 102 style="?android:attr/listSeparatorTextViewStyle" 103 android:text="@string/details_subtitle" /> 104 105 <LinearLayout 106 android:id="@+id/details" 107 android:layout_width="match_parent" 108 android:layout_height="wrap_content" 109 android:paddingLeft="6dip" 110 android:orientation="vertical"> 111 112 <!-- Insert detail items here --> 113 114 </LinearLayout> 115 116 <LinearLayout 117 android:id="@+id/controls" 118 android:layout_width="match_parent" 119 android:layout_height="wrap_content" 120 android:orientation="vertical"> 121 122 <TextView 123 android:id="@+id/controls_title" 124 style="?android:attr/listSeparatorTextViewStyle" 125 android:layout_marginTop="6dip" 126 android:text="@string/controls_subtitle" /> 127 128 <!-- Controls go here ... --> 129 130 </LinearLayout> 131 132 <TextView 133 android:id="@+id/packages_section_title" 134 style="?android:attr/listSeparatorTextViewStyle" 135 android:layout_marginTop="6dip" 136 android:text="@string/packages_subtitle" /> 137 138 <LinearLayout 139 android:id="@+id/packages_section" 140 android:layout_width="match_parent" 141 android:layout_height="wrap_content" 142 android:paddingLeft="6dip" 143 android:orientation="vertical"> 144 145 <!-- Insert detail items here --> 146 147 </LinearLayout> 148 </LinearLayout> 149 </ScrollView> 150