• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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="fill_parent"
20    android:layout_height="fill_parent">
21    <LinearLayout
22        android:id="@+id/all_details"
23        android:layout_width="fill_parent"
24        android:layout_height="fill_parent"
25        android:paddingTop="5dip"
26        android:paddingBottom="5dip"
27        android:orientation="vertical">
28
29        <LinearLayout
30            android:layout_width="fill_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="fill_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        <TextView
91            style="?android:attr/listSeparatorTextViewStyle"
92            android:text="@string/details_subtitle" />
93
94        <LinearLayout
95            android:id="@+id/details"
96            android:layout_width="fill_parent"
97            android:layout_height="wrap_content"
98            android:paddingLeft="6dip"
99            android:orientation="vertical">
100
101            <!-- Insert detail items here -->
102
103        </LinearLayout>
104
105        <LinearLayout
106            android:id="@+id/controls"
107            android:layout_width="fill_parent"
108            android:layout_height="wrap_content"
109            android:orientation="vertical">
110
111            <TextView
112                android:id="@+id/controls_title"
113                style="?android:attr/listSeparatorTextViewStyle"
114                android:layout_marginTop="6dip"
115                android:text="@string/controls_subtitle" />
116
117            <!-- Controls go here ... -->
118
119        </LinearLayout>
120
121        <TextView
122            android:id="@+id/packages_section_title"
123            style="?android:attr/listSeparatorTextViewStyle"
124            android:layout_marginTop="6dip"
125            android:text="@string/packages_subtitle" />
126
127        <LinearLayout
128            android:id="@+id/packages_section"
129            android:layout_width="fill_parent"
130            android:layout_height="wrap_content"
131            android:paddingLeft="6dip"
132            android:orientation="vertical">
133
134            <!-- Insert detail items here -->
135
136        </LinearLayout>
137    </LinearLayout>
138</ScrollView>
139