OSDN Git Service

am 0008d219: Refactor to remove multiple in-loop Object[]->String[] castings
[android-x86/packages-apps-Settings.git] / res / layout / installed_app_details.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 /*
4 ** Copyright 2008, The Android Open Source Project
5 **
6 ** Licensed under the Apache License, Version 2.0 (the "License");
7 ** you may not use this file except in compliance with the License.
8 ** You may obtain a copy of the License at
9 **
10 **     http://www.apache.org/licenses/LICENSE-2.0
11 **
12 ** Unless required by applicable law or agreed to in writing, software
13 ** distributed under the License is distributed on an "AS IS" BASIS,
14 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 ** See the License for the specific language governing permissions and
16 ** limitations under the License.
17 */
18 -->
19 <ScrollView
20     xmlns:android="http://schemas.android.com/apk/res/android"
21     android:layout_width="match_parent"
22     android:layout_height="match_parent">
23     <LinearLayout
24         android:id="@+id/all_details"
25         android:layout_width="match_parent"
26         android:layout_height="match_parent"
27         android:paddingRight="6dip"
28         android:paddingBottom="5dip"
29         android:orientation="vertical">
30
31         <!-- App snippet with buttons -->
32         <LinearLayout
33             android:layout_width="match_parent"
34             android:layout_height="wrap_content"
35             android:layout_gravity="center_vertical"
36             android:orientation="vertical"
37             android:paddingRight="6dip"
38             android:paddingLeft="6dip"
39             android:paddingTop="5dip"
40             android:paddingBottom="5dip" >
41
42         <!-- Application snippet label, version and icon -->
43         <include
44             layout="@layout/manage_applications_item"
45             android:id="@+id/app_snippet"/>
46
47         <!-- Force stop and uninstall buttons -->
48         <include
49             layout="@layout/two_buttons_panel"
50             android:id="@+id/control_buttons_panel"/>
51         </LinearLayout>
52
53         <TextView
54             style="?android:attr/listSeparatorTextViewStyle"
55             android:text="@string/storage_label" />
56
57         <LinearLayout
58             android:layout_width="match_parent"
59             android:layout_height="wrap_content"
60             android:paddingLeft="6dip"
61             android:orientation="vertical">
62             <LinearLayout
63                 android:layout_width="match_parent"
64                 android:layout_height="wrap_content"
65                 android:orientation="horizontal"
66                 android:baselineAligned="true"
67                 android:paddingTop="-1dip">
68                 <TextView
69                     android:id="@+id/total_size_prefix"
70                     android:text="@string/total_size_label"
71                     android:textAppearance="?android:attr/textAppearanceMedium"
72                     android:layout_height="wrap_content"
73                     android:layout_width="wrap_content"
74                     android:maxLines="1"
75                     android:paddingTop="6dip"
76                     android:paddingLeft="6dip"/>
77
78                 <ImageView
79                     android:id="@+id/info_size_dots"
80                     android:src="@drawable/dotted_line_480px"
81                     android:layout_width="0dip"
82                     android:layout_weight="1"
83                     android:layout_height="1px"
84                     android:layout_gravity="bottom"
85                     android:layout_marginLeft="1dip"
86                     android:layout_marginRight="1dip"
87                     android:layout_marginBottom="4dip"
88                     android:scaleType="center" />
89                 <TextView
90                     android:id="@+id/total_size_text"
91                     android:paddingTop="6dip"
92                     android:paddingRight="6dip"
93                     android:textAppearance="?android:attr/textAppearanceMedium"
94                     android:layout_height="wrap_content"
95                     android:layout_width="wrap_content"
96                     android:maxLines="1" />
97
98             </LinearLayout>
99             <LinearLayout
100                 android:layout_width="match_parent"
101                 android:layout_height="wrap_content"
102                 android:orientation="horizontal"
103                 android:baselineAligned="true"
104                 android:paddingTop="-1dip">
105                 <TextView
106                     android:id="@+id/application_size_prefix"
107                     android:text="@string/application_size_label"
108                     android:textAppearance="?android:attr/textAppearanceMedium"
109                     android:layout_height="wrap_content"
110                     android:layout_width="wrap_content"
111                     android:maxLines="1"
112                     android:paddingTop="6dip"
113                     android:paddingLeft="6dip"/>
114                 <ImageView
115                     android:id="@+id/info_size_dots"
116                     android:src="@drawable/dotted_line_480px"
117                     android:layout_width="0dip"
118                     android:layout_weight="1"
119                     android:layout_height="1px"
120                     android:layout_gravity="bottom"
121                     android:layout_marginLeft="1dip"
122                     android:layout_marginRight="1dip"
123                     android:layout_marginBottom="4dip"
124                     android:scaleType="center" />
125                 <TextView
126                     android:id="@+id/application_size_text"
127                     android:textAppearance="?android:attr/textAppearanceMedium"
128                     android:paddingTop="6dip"
129                     android:paddingRight="6dip"
130                     android:layout_height="wrap_content"
131                     android:layout_width="wrap_content"
132                     android:maxLines="1" />
133
134             </LinearLayout>
135             <LinearLayout
136                 android:id="@+id/info_size"
137                 android:layout_width="match_parent"
138                 android:layout_height="wrap_content"
139                 android:orientation="horizontal"
140                 android:baselineAligned="true"
141                 android:paddingTop="-1dip">
142                 <TextView
143                     android:id="@+id/data_size_prefix"
144                     android:text="@string/data_size_label"
145                     android:textAppearance="?android:attr/textAppearanceMedium"
146                     android:layout_height="wrap_content"
147                     android:layout_width="wrap_content"
148                     android:maxLines="1"
149                     android:paddingTop="6dip"
150                     android:paddingLeft="6dip"/>
151                 <ImageView
152                     android:id="@+id/info_size_dots"
153                     android:src="@drawable/dotted_line_480px"
154                     android:layout_width="0dip"
155                     android:layout_weight="1"
156                     android:layout_height="1px"
157                     android:layout_gravity="bottom"
158                     android:layout_marginLeft="1dip"
159                     android:layout_marginRight="1dip"
160                     android:layout_marginBottom="4dip"
161                     android:scaleType="center" />
162                 <TextView
163                     android:id="@+id/data_size_text"
164                     android:textAppearance="?android:attr/textAppearanceMedium"
165                     android:paddingTop="6dip"
166                     android:paddingRight="6dip"
167                     android:layout_height="wrap_content"
168                     android:layout_width="wrap_content"
169                     android:maxLines="1" />
170
171             </LinearLayout>
172             <!-- Clear data and install location buttons  -->
173             <include
174                 layout="@layout/two_buttons_panel"
175                 android:id="@+id/data_buttons_panel"/>
176
177         </LinearLayout>
178
179         <!-- Clear cache section -->
180         <RelativeLayout
181             android:id="@+id/cache_panel"
182             android:layout_width="match_parent"
183             android:layout_height="wrap_content" >
184             <TextView
185                 android:id="@+id/cache_header"
186                 style="?android:attr/listSeparatorTextViewStyle"
187                 android:text="@string/cache_header_label" />
188             <LinearLayout
189                 android:id="@+id/cache_size"
190                 android:layout_width="match_parent"
191                 android:layout_height="wrap_content"
192                 android:orientation="horizontal"
193                 android:baselineAligned="true"
194                 android:layout_below="@id/cache_header"
195                 android:paddingTop="-1dip">
196                 <TextView
197                     android:text="@string/cache_size_label"
198                     android:layout_height="wrap_content"
199                     android:layout_width="wrap_content"
200                     android:maxLines="1"
201                     android:textAppearance="?android:attr/textAppearanceMedium"
202                     android:paddingTop="6dip"
203                     android:gravity="center_vertical"
204                     android:paddingLeft="6dip"/>
205                 <ImageView
206                     android:src="@drawable/dotted_line_480px"
207                     android:layout_width="0dip"
208                     android:layout_weight="1"
209                     android:layout_height="1px"
210                     android:layout_gravity="bottom"
211                     android:layout_marginLeft="1dip"
212                     android:layout_marginRight="1dip"
213                     android:layout_marginBottom="4dip"
214                     android:scaleType="center" />
215                 <TextView
216                     android:id="@+id/cache_size_text"
217                     android:textAppearance="?android:attr/textAppearanceMedium"
218                     android:paddingTop="6dip"
219                     android:paddingRight="6dip"
220                     android:layout_height="wrap_content"
221                     android:layout_width="wrap_content"
222                     android:maxLines="1" />
223             </LinearLayout>
224
225             <Button android:id="@+id/clear_cache_button"
226                 android:layout_alignParentRight="true"
227                 android:layout_below="@id/cache_size"
228                 android:layout_centerHorizontal="true"
229                 android:layout_width="150dip"
230                 android:text="@string/clear_cache_btn_text"
231                 android:layout_height="wrap_content" />
232         </RelativeLayout>
233
234         <!-- Prefered activities section -->
235         <TextView
236             style="?android:attr/listSeparatorTextViewStyle"
237             android:text="@string/auto_launch_label" />
238
239         <RelativeLayout 
240             android:layout_width="match_parent"
241             android:layout_height="wrap_content"
242             android:layout_gravity="center_vertical">
243             <TextView android:id="@+id/auto_launch"
244                 android:textAppearance="?android:attr/textAppearanceSmall"
245                 android:layout_alignParentLeft="true"
246                 android:layout_width="match_parent"
247                 android:layout_height="wrap_content"
248                 android:paddingTop="6dip"
249                 android:paddingRight="6dip"
250                 android:paddingLeft="6dip" />
251             <Button android:id="@+id/clear_activities_button"
252                 android:layout_alignParentRight="true"
253                 android:layout_below="@id/auto_launch"
254                 android:layout_centerHorizontal="true"
255                 android:layout_width="150dip"
256                 android:text="@string/clear_activities"
257                 android:layout_height="wrap_content" />
258         </RelativeLayout>
259
260         <!-- Permissions section -->
261         <LinearLayout
262             android:id="@+id/permissions_section"
263             android:layout_width="match_parent"
264             android:layout_height="match_parent"
265             android:orientation="vertical">
266             <TextView
267                 style="?android:attr/listSeparatorTextViewStyle"
268                 android:text="@string/permissions_label" />
269             <TextView
270                 android:text="@string/security_settings_desc"
271                 android:textAppearance="?android:attr/textAppearanceSmall"
272                 android:paddingTop="6dip"
273                 android:paddingLeft="6dip"
274                 android:paddingBottom="6dip"
275                 android:layout_width="match_parent"
276                 android:layout_height="wrap_content" />
277             <LinearLayout
278                 android:id="@+id/security_settings_list"
279                 android:layout_width="match_parent"
280                 android:layout_height="match_parent"
281                 android:orientation="vertical"/>
282         </LinearLayout>
283     </LinearLayout>
284 </ScrollView>
285