OSDN Git Service

merge from open-source master
[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:paddingTop="5dip"
29         android:paddingBottom="5dip"
30         android:orientation="vertical">
31
32         <!-- App snippet with buttons -->
33         <LinearLayout
34             android:layout_width="match_parent"
35             android:layout_height="wrap_content"
36             android:layout_gravity="center_vertical"
37             android:orientation="vertical"
38             android:paddingRight="6dip"
39             android:paddingLeft="6dip"
40             android:paddingTop="5dip"
41             android:paddingBottom="5dip" >
42
43         <!-- Application snippet label, version and icon -->
44         <include
45             layout="@layout/manage_applications_item"
46             android:id="@+id/app_snippet"/>
47
48         <!-- Force stop and uninstall buttons -->
49         <include
50             layout="@layout/two_buttons_panel"
51             android:id="@+id/control_buttons_panel"/>
52         </LinearLayout>
53
54         <TextView
55             style="?android:attr/listSeparatorTextViewStyle"
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             <LinearLayout
137                 android:id="@+id/info_size"
138                 android:layout_width="match_parent"
139                 android:layout_height="wrap_content"
140                 android:orientation="horizontal"
141                 android:baselineAligned="true"
142                 android:paddingTop="-1dip">
143                 <TextView
144                     android:id="@+id/data_size_prefix"
145                     android:text="@string/data_size_label"
146                     android:textAppearance="?android:attr/textAppearanceMedium"
147                     android:layout_height="wrap_content"
148                     android:layout_width="wrap_content"
149                     android:maxLines="1"
150                     android:paddingTop="6dip"
151                     android:paddingLeft="6dip"/>
152                 <ImageView
153                     android:id="@+id/info_size_dots"
154                     android:src="@drawable/dotted_line_480px"
155                     android:layout_width="0dip"
156                     android:layout_weight="1"
157                     android:layout_height="1px"
158                     android:layout_gravity="bottom"
159                     android:layout_marginLeft="1dip"
160                     android:layout_marginRight="1dip"
161                     android:layout_marginBottom="4dip"
162                     android:scaleType="center" />
163                 <TextView
164                     android:id="@+id/data_size_text"
165                     android:textAppearance="?android:attr/textAppearanceMedium"
166                     android:paddingTop="6dip"
167                     android:paddingRight="6dip"
168                     android:layout_height="wrap_content"
169                     android:layout_width="wrap_content"
170                     android:maxLines="1" />
171
172             </LinearLayout>
173             <!-- Clear data and install location buttons  -->
174             <include
175                 layout="@layout/two_buttons_panel"
176                 android:id="@+id/data_buttons_panel"/>
177
178         </LinearLayout>
179
180         <!-- Clear cache section -->
181         <RelativeLayout
182             android:id="@+id/cache_panel"
183             android:layout_width="match_parent"
184             android:layout_height="wrap_content" >
185             <TextView
186                 android:id="@+id/cache_header"
187                 style="?android:attr/listSeparatorTextViewStyle"
188                 android:text="@string/cache_header_label" />
189             <LinearLayout
190                 android:id="@+id/cache_size"
191                 android:layout_width="match_parent"
192                 android:layout_height="wrap_content"
193                 android:orientation="horizontal"
194                 android:baselineAligned="true"
195                 android:layout_below="@id/cache_header"
196                 android:paddingTop="-1dip">
197                 <TextView
198                     android:text="@string/cache_size_label"
199                     android:layout_height="wrap_content"
200                     android:layout_width="wrap_content"
201                     android:maxLines="1"
202                     android:textAppearance="?android:attr/textAppearanceMedium"
203                     android:paddingTop="6dip"
204                     android:gravity="center_vertical"
205                     android:paddingLeft="6dip"/>
206                 <ImageView
207                     android:src="@drawable/dotted_line_480px"
208                     android:layout_width="0dip"
209                     android:layout_weight="1"
210                     android:layout_height="1px"
211                     android:layout_gravity="bottom"
212                     android:layout_marginLeft="1dip"
213                     android:layout_marginRight="1dip"
214                     android:layout_marginBottom="4dip"
215                     android:scaleType="center" />
216                 <TextView
217                     android:id="@+id/cache_size_text"
218                     android:textAppearance="?android:attr/textAppearanceMedium"
219                     android:paddingTop="6dip"
220                     android:paddingRight="6dip"
221                     android:layout_height="wrap_content"
222                     android:layout_width="wrap_content"
223                     android:maxLines="1" />
224             </LinearLayout>
225
226             <Button android:id="@+id/clear_cache_button"
227                 android:layout_alignParentRight="true"
228                 android:layout_below="@id/cache_size"
229                 android:layout_centerHorizontal="true"
230                 android:layout_width="150dip"
231                 android:text="@string/clear_cache_btn_text"
232                 android:layout_height="wrap_content" />
233         </RelativeLayout>
234
235         <!-- Prefered activities section -->
236         <TextView
237             style="?android:attr/listSeparatorTextViewStyle"
238             android:text="@string/auto_launch_label" />
239
240         <RelativeLayout 
241             android:layout_width="match_parent"
242             android:layout_height="wrap_content"
243             android:layout_gravity="center_vertical">
244             <TextView android:id="@+id/auto_launch"
245                 android:textAppearance="?android:attr/textAppearanceSmall"
246                 android:layout_alignParentLeft="true"
247                 android:layout_width="match_parent"
248                 android:layout_height="wrap_content"
249                 android:paddingTop="6dip"
250                 android:paddingRight="6dip"
251                 android:paddingLeft="6dip" />
252             <Button android:id="@+id/clear_activities_button"
253                 android:layout_alignParentRight="true"
254                 android:layout_below="@id/auto_launch"
255                 android:layout_centerHorizontal="true"
256                 android:layout_width="150dip"
257                 android:text="@string/clear_activities"
258                 android:layout_height="wrap_content" />
259         </RelativeLayout>
260
261         <!-- Permissions section -->
262         <LinearLayout
263             android:id="@+id/permissions_section"
264             android:layout_width="match_parent"
265             android:layout_height="match_parent"
266             android:orientation="vertical">
267             <TextView
268                 style="?android:attr/listSeparatorTextViewStyle"
269                 android:text="@string/permissions_label" />
270             <TextView
271                 android:text="@string/security_settings_desc"
272                 android:textAppearance="?android:attr/textAppearanceSmall"
273                 android:paddingTop="6dip"
274                 android:paddingLeft="6dip"
275                 android:paddingBottom="6dip"
276                 android:layout_width="match_parent"
277                 android:layout_height="wrap_content" />
278             <LinearLayout
279                 android:id="@+id/security_settings_list"
280                 android:layout_width="match_parent"
281                 android:layout_height="match_parent"
282                 android:orientation="vertical"/>
283         </LinearLayout>
284     </LinearLayout>
285 </ScrollView>
286