OSDN Git Service

Implement new manage apps UI for compat mode.
[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:layout_marginTop="8dip"
56             android:text="@string/storage_label" />
57
58         <LinearLayout
59             android:layout_width="match_parent"
60             android:layout_height="wrap_content"
61             android:paddingLeft="6dip"
62             android:orientation="vertical">
63             <LinearLayout
64                 android:layout_width="match_parent"
65                 android:layout_height="wrap_content"
66                 android:orientation="horizontal"
67                 android:baselineAligned="true"
68                 android:paddingTop="-1dip">
69                 <TextView
70                     android:id="@+id/total_size_prefix"
71                     android:text="@string/total_size_label"
72                     android:textAppearance="?android:attr/textAppearanceMedium"
73                     android:layout_height="wrap_content"
74                     android:layout_width="wrap_content"
75                     android:maxLines="1"
76                     android:paddingTop="6dip"
77                     android:paddingLeft="6dip"/>
78
79                 <ImageView
80                     android:id="@+id/info_size_dots"
81                     android:src="@drawable/dotted_line_480px"
82                     android:layout_width="0dip"
83                     android:layout_weight="1"
84                     android:layout_height="1px"
85                     android:layout_gravity="bottom"
86                     android:layout_marginLeft="1dip"
87                     android:layout_marginRight="1dip"
88                     android:layout_marginBottom="4dip"
89                     android:scaleType="center" />
90                 <TextView
91                     android:id="@+id/total_size_text"
92                     android:paddingTop="6dip"
93                     android:paddingRight="6dip"
94                     android:textAppearance="?android:attr/textAppearanceMedium"
95                     android:layout_height="wrap_content"
96                     android:layout_width="wrap_content"
97                     android:maxLines="1" />
98
99             </LinearLayout>
100             <LinearLayout
101                 android:layout_width="match_parent"
102                 android:layout_height="wrap_content"
103                 android:orientation="horizontal"
104                 android:baselineAligned="true"
105                 android:paddingTop="-1dip">
106                 <TextView
107                     android:id="@+id/application_size_prefix"
108                     android:text="@string/application_size_label"
109                     android:textAppearance="?android:attr/textAppearanceMedium"
110                     android:layout_height="wrap_content"
111                     android:layout_width="wrap_content"
112                     android:maxLines="1"
113                     android:paddingTop="6dip"
114                     android:paddingLeft="6dip"/>
115                 <ImageView
116                     android:id="@+id/info_size_dots"
117                     android:src="@drawable/dotted_line_480px"
118                     android:layout_width="0dip"
119                     android:layout_weight="1"
120                     android:layout_height="1px"
121                     android:layout_gravity="bottom"
122                     android:layout_marginLeft="1dip"
123                     android:layout_marginRight="1dip"
124                     android:layout_marginBottom="4dip"
125                     android:scaleType="center" />
126                 <TextView
127                     android:id="@+id/application_size_text"
128                     android:textAppearance="?android:attr/textAppearanceMedium"
129                     android:paddingTop="6dip"
130                     android:paddingRight="6dip"
131                     android:layout_height="wrap_content"
132                     android:layout_width="wrap_content"
133                     android:maxLines="1" />
134
135             </LinearLayout>
136
137             <LinearLayout
138                 android:id="@+id/info_size"
139                 android:layout_width="match_parent"
140                 android:layout_height="wrap_content"
141                 android:orientation="horizontal"
142                 android:baselineAligned="true"
143                 android:paddingTop="-1dip">
144                 <TextView
145                     android:id="@+id/data_size_prefix"
146                     android:text="@string/data_size_label"
147                     android:textAppearance="?android:attr/textAppearanceMedium"
148                     android:layout_height="wrap_content"
149                     android:layout_width="wrap_content"
150                     android:maxLines="1"
151                     android:paddingTop="6dip"
152                     android:paddingLeft="6dip"/>
153                 <ImageView
154                     android:id="@+id/info_size_dots"
155                     android:src="@drawable/dotted_line_480px"
156                     android:layout_width="0dip"
157                     android:layout_weight="1"
158                     android:layout_height="1px"
159                     android:layout_gravity="bottom"
160                     android:layout_marginLeft="1dip"
161                     android:layout_marginRight="1dip"
162                     android:layout_marginBottom="4dip"
163                     android:scaleType="center" />
164                 <TextView
165                     android:id="@+id/data_size_text"
166                     android:textAppearance="?android:attr/textAppearanceMedium"
167                     android:paddingTop="6dip"
168                     android:paddingRight="6dip"
169                     android:layout_height="wrap_content"
170                     android:layout_width="wrap_content"
171                     android:maxLines="1" />
172
173             </LinearLayout>
174
175             <LinearLayout
176                 android:layout_width="match_parent"
177                 android:layout_height="wrap_content"
178                 android:orientation="horizontal"
179                 android:baselineAligned="true"
180                 android:paddingTop="-1dip">
181                 <TextView
182                     android:id="@+id/external_size_prefix"
183                     android:text="@string/external_size_label"
184                     android:textAppearance="?android:attr/textAppearanceMedium"
185                     android:layout_height="wrap_content"
186                     android:layout_width="wrap_content"
187                     android:maxLines="1"
188                     android:paddingTop="6dip"
189                     android:paddingLeft="6dip"/>
190                 <ImageView
191                     android:id="@+id/info_size_dots"
192                     android:src="@drawable/dotted_line_480px"
193                     android:layout_width="0dip"
194                     android:layout_weight="1"
195                     android:layout_height="1px"
196                     android:layout_gravity="bottom"
197                     android:layout_marginLeft="1dip"
198                     android:layout_marginRight="1dip"
199                     android:layout_marginBottom="4dip"
200                     android:scaleType="center" />
201                 <TextView
202                     android:id="@+id/external_size_text"
203                     android:textAppearance="?android:attr/textAppearanceMedium"
204                     android:paddingTop="6dip"
205                     android:paddingRight="6dip"
206                     android:layout_height="wrap_content"
207                     android:layout_width="wrap_content"
208                     android:maxLines="1" />
209
210             </LinearLayout>
211
212             <!-- Clear data and install location buttons  -->
213             <include
214                 layout="@layout/two_buttons_panel"
215                 android:id="@+id/data_buttons_panel"/>
216
217         </LinearLayout>
218
219         <!-- Clear cache section -->
220         <RelativeLayout
221             android:id="@+id/cache_panel"
222             android:layout_width="match_parent"
223             android:layout_height="wrap_content" >
224             <TextView
225                 android:id="@+id/cache_header"
226                 style="?android:attr/listSeparatorTextViewStyle"
227                 android:layout_marginTop="8dip"
228                 android:text="@string/cache_header_label" />
229             <LinearLayout
230                 android:id="@+id/cache_size"
231                 android:layout_width="match_parent"
232                 android:layout_height="wrap_content"
233                 android:orientation="horizontal"
234                 android:baselineAligned="true"
235                 android:layout_below="@id/cache_header"
236                 android:paddingTop="-1dip">
237                 <TextView
238                     android:text="@string/cache_size_label"
239                     android:layout_height="wrap_content"
240                     android:layout_width="wrap_content"
241                     android:maxLines="1"
242                     android:textAppearance="?android:attr/textAppearanceMedium"
243                     android:paddingTop="6dip"
244                     android:gravity="center_vertical"
245                     android:paddingLeft="6dip"/>
246                 <ImageView
247                     android:src="@drawable/dotted_line_480px"
248                     android:layout_width="0dip"
249                     android:layout_weight="1"
250                     android:layout_height="1px"
251                     android:layout_gravity="bottom"
252                     android:layout_marginLeft="1dip"
253                     android:layout_marginRight="1dip"
254                     android:layout_marginBottom="4dip"
255                     android:scaleType="center" />
256                 <TextView
257                     android:id="@+id/cache_size_text"
258                     android:textAppearance="?android:attr/textAppearanceMedium"
259                     android:paddingTop="6dip"
260                     android:paddingRight="6dip"
261                     android:layout_height="wrap_content"
262                     android:layout_width="wrap_content"
263                     android:maxLines="1" />
264             </LinearLayout>
265
266             <Button android:id="@+id/clear_cache_button"
267                 android:layout_alignParentRight="true"
268                 android:layout_below="@id/cache_size"
269                 android:layout_centerHorizontal="true"
270                 android:layout_width="200dip"
271                 android:text="@string/clear_cache_btn_text"
272                 android:layout_height="wrap_content" />
273         </RelativeLayout>
274
275         <!-- Prefered activities section -->
276         <TextView
277             style="?android:attr/listSeparatorTextViewStyle"
278             android:layout_marginTop="8dip"
279             android:text="@string/auto_launch_label" />
280
281         <RelativeLayout 
282             android:layout_width="match_parent"
283             android:layout_height="wrap_content"
284             android:layout_gravity="center_vertical">
285             <TextView android:id="@+id/auto_launch"
286                 android:textAppearance="?android:attr/textAppearanceSmall"
287                 android:layout_alignParentLeft="true"
288                 android:layout_width="match_parent"
289                 android:layout_height="wrap_content"
290                 android:paddingTop="6dip"
291                 android:paddingRight="6dip"
292                 android:paddingLeft="6dip" />
293             <Button android:id="@+id/clear_activities_button"
294                 android:layout_alignParentRight="true"
295                 android:layout_below="@id/auto_launch"
296                 android:layout_centerHorizontal="true"
297                 android:layout_width="200dip"
298                 android:text="@string/clear_activities"
299                 android:layout_height="wrap_content" />
300         </RelativeLayout>
301
302         <!-- Screen compatibility section -->
303         <LinearLayout android:id="@+id/screen_compatibility_section"
304                 android:layout_width="match_parent"
305                 android:layout_height="wrap_content"
306                 android:orientation="vertical">
307             <TextView
308                 style="?android:attr/listSeparatorTextViewStyle"
309                 android:layout_marginTop="8dip"
310                 android:text="@string/screen_compatibility_label" />
311
312             <TextView android:textAppearance="?android:attr/textAppearanceSmall"
313                 android:layout_alignParentLeft="true"
314                 android:layout_width="match_parent"
315                 android:layout_height="wrap_content"
316                 android:paddingTop="6dip"
317                 android:paddingRight="6dip"
318                 android:paddingLeft="6dip"
319                 android:text="@string/screen_compatibility_text"/>
320             <CheckBox android:id="@+id/ask_compatibility_cb"
321                 android:layout_width="wrap_content"
322                 android:layout_height="wrap_content"
323                 android:layout_marginLeft="12dip"
324                 android:layout_gravity="left"
325                 android:text="@string/ask_compatibility" />
326             <CheckBox android:id="@+id/enable_compatibility_cb"
327                 android:layout_width="wrap_content"
328                 android:layout_height="wrap_content"
329                 android:layout_marginLeft="12dip"
330                 android:layout_gravity="left"
331                 android:text="@string/enable_compatibility" />
332         </LinearLayout>
333
334         <!-- Permissions section -->
335         <LinearLayout
336             android:id="@+id/permissions_section"
337             android:layout_width="match_parent"
338             android:layout_height="match_parent"
339             android:orientation="vertical">
340             <TextView
341                 style="?android:attr/listSeparatorTextViewStyle"
342                 android:layout_marginTop="8dip"
343                 android:text="@string/permissions_label" />
344             <TextView
345                 android:text="@string/security_settings_desc"
346                 android:textAppearance="?android:attr/textAppearanceSmall"
347                 android:paddingTop="6dip"
348                 android:paddingLeft="6dip"
349                 android:paddingBottom="6dip"
350                 android:layout_width="match_parent"
351                 android:layout_height="wrap_content" />
352             <LinearLayout
353                 android:id="@+id/security_settings_list"
354                 android:layout_width="match_parent"
355                 android:layout_height="match_parent"
356                 android:orientation="vertical"/>
357         </LinearLayout>
358     </LinearLayout>
359 </ScrollView>
360