OSDN Git Service

Merge "Settings for TextToSpeech now uses the results returned by the engine's CheckV...
[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 -->
33         <RelativeLayout
34             android:layout_width="match_parent"
35             android:layout_height="wrap_content"
36             android:layout_gravity="center_vertical">
37
38             <LinearLayout
39                 android:orientation="vertical"
40                 android:layout_alignParentLeft="true"
41                 android:layout_width="match_parent"
42                 android:layout_height="wrap_content"
43                 android:paddingTop="6dip"
44                 android:paddingBottom="6dip"
45                 android:paddingRight="6dip"
46                 android:paddingLeft="6dip" >
47                 <!-- application name -->
48                 <TextView android:id="@+id/app_name"
49                     android:layout_width="wrap_content"
50                     android:layout_height="wrap_content"
51                     android:textAppearance="?android:attr/textAppearanceMedium"
52                     android:textStyle="bold"
53                     android:singleLine="true"
54                     android:ellipsize="marquee"
55                     android:layout_marginBottom="2dip" />
56                 <!-- application version -->
57                 <TextView android:id="@+id/app_version"
58                     android:layout_marginTop="-4dip"
59                     android:layout_gravity="center_vertical"
60                     android:layout_width="wrap_content"
61                     android:layout_height="wrap_content"
62                     android:textAppearance="?android:attr/textAppearanceSmall" />
63             </LinearLayout>
64
65             <!-- application icon -->
66             <ImageView android:id="@+id/app_icon"
67                 android:layout_width="@android:dimen/app_icon_size"
68                 android:layout_height="@android:dimen/app_icon_size"
69                 android:layout_alignParentRight="true"
70                 android:paddingTop="6dip"
71                 android:paddingBottom="6dip"
72                 android:paddingRight="6dip"
73                 android:scaleType="fitCenter" />
74         </RelativeLayout>
75         <!-- Force stop and uninstall buttons -->
76         <include
77             layout="@layout/two_buttons_panel"
78             android:id="@+id/control_buttons_panel"/>
79
80         <TextView
81             style="?android:attr/listSeparatorTextViewStyle"
82             android:text="@string/storage_label" />
83
84         <LinearLayout
85             android:layout_width="match_parent"
86             android:layout_height="wrap_content"
87             android:paddingLeft="6dip"
88             android:orientation="vertical">
89             <LinearLayout
90                 android:layout_width="match_parent"
91                 android:layout_height="wrap_content"
92                 android:orientation="horizontal"
93                 android:baselineAligned="true"
94                 android:paddingTop="-1dip">
95                 <TextView
96                     android:id="@+id/total_size_prefix"
97                     android:text="@string/total_size_label"
98                     android:textAppearance="?android:attr/textAppearanceMedium"
99                     android:layout_height="wrap_content"
100                     android:layout_width="wrap_content"
101                     android:maxLines="1"
102                     android:paddingTop="6dip"
103                     android:paddingLeft="6dip"/>
104
105                 <ImageView
106                     android:id="@+id/info_size_dots"
107                     android:src="@drawable/dotted_line_480px"
108                     android:layout_width="0dip"
109                     android:layout_weight="1"
110                     android:layout_height="1px"
111                     android:layout_gravity="bottom"
112                     android:layout_marginLeft="1dip"
113                     android:layout_marginRight="1dip"
114                     android:layout_marginBottom="4dip"
115                     android:scaleType="center" />
116                 <TextView
117                     android:id="@+id/total_size_text"
118                     android:paddingTop="6dip"
119                     android:paddingRight="6dip"
120                     android:textAppearance="?android:attr/textAppearanceMedium"
121                     android:layout_height="wrap_content"
122                     android:layout_width="wrap_content"
123                     android:maxLines="1" />
124
125             </LinearLayout>
126             <LinearLayout
127                 android:layout_width="match_parent"
128                 android:layout_height="wrap_content"
129                 android:orientation="horizontal"
130                 android:baselineAligned="true"
131                 android:paddingTop="-1dip">
132                 <TextView
133                     android:id="@+id/application_size_prefix"
134                     android:text="@string/application_size_label"
135                     android:textAppearance="?android:attr/textAppearanceMedium"
136                     android:layout_height="wrap_content"
137                     android:layout_width="wrap_content"
138                     android:maxLines="1"
139                     android:paddingTop="6dip"
140                     android:paddingLeft="6dip"/>
141                 <ImageView
142                     android:id="@+id/info_size_dots"
143                     android:src="@drawable/dotted_line_480px"
144                     android:layout_width="0dip"
145                     android:layout_weight="1"
146                     android:layout_height="1px"
147                     android:layout_gravity="bottom"
148                     android:layout_marginLeft="1dip"
149                     android:layout_marginRight="1dip"
150                     android:layout_marginBottom="4dip"
151                     android:scaleType="center" />
152                 <TextView
153                     android:id="@+id/application_size_text"
154                     android:textAppearance="?android:attr/textAppearanceMedium"
155                     android:paddingTop="6dip"
156                     android:paddingRight="6dip"
157                     android:layout_height="wrap_content"
158                     android:layout_width="wrap_content"
159                     android:maxLines="1" />
160
161             </LinearLayout>
162             <LinearLayout
163                 android:id="@+id/info_size"
164                 android:layout_width="match_parent"
165                 android:layout_height="wrap_content"
166                 android:orientation="horizontal"
167                 android:baselineAligned="true"
168                 android:paddingTop="-1dip">
169                 <TextView
170                     android:id="@+id/data_size_prefix"
171                     android:text="@string/data_size_label"
172                     android:textAppearance="?android:attr/textAppearanceMedium"
173                     android:layout_height="wrap_content"
174                     android:layout_width="wrap_content"
175                     android:maxLines="1"
176                     android:paddingTop="6dip"
177                     android:paddingLeft="6dip"/>
178                 <ImageView
179                     android:id="@+id/info_size_dots"
180                     android:src="@drawable/dotted_line_480px"
181                     android:layout_width="0dip"
182                     android:layout_weight="1"
183                     android:layout_height="1px"
184                     android:layout_gravity="bottom"
185                     android:layout_marginLeft="1dip"
186                     android:layout_marginRight="1dip"
187                     android:layout_marginBottom="4dip"
188                     android:scaleType="center" />
189                 <TextView
190                     android:id="@+id/data_size_text"
191                     android:textAppearance="?android:attr/textAppearanceMedium"
192                     android:paddingTop="6dip"
193                     android:paddingRight="6dip"
194                     android:layout_height="wrap_content"
195                     android:layout_width="wrap_content"
196                     android:maxLines="1" />
197
198             </LinearLayout>
199             <!-- Clear data and install location buttons  -->
200             <include
201                 layout="@layout/two_buttons_panel"
202                 android:id="@+id/data_buttons_panel"/>
203
204         </LinearLayout>
205
206         <!-- Clear cache section -->
207         <RelativeLayout
208             android:id="@+id/cache_panel"
209             android:layout_width="match_parent"
210             android:layout_height="wrap_content" >
211             <TextView
212                 android:id="@+id/cache_header"
213                 style="?android:attr/listSeparatorTextViewStyle"
214                 android:text="@string/cache_header_label" />
215             <LinearLayout
216                 android:id="@+id/cache_size"
217                 android:layout_width="match_parent"
218                 android:layout_height="wrap_content"
219                 android:orientation="horizontal"
220                 android:baselineAligned="true"
221                 android:layout_below="@id/cache_header"
222                 android:paddingTop="-1dip">
223                 <TextView
224                     android:text="@string/cache_size_label"
225                     android:layout_height="wrap_content"
226                     android:layout_width="wrap_content"
227                     android:maxLines="1"
228                     android:textAppearance="?android:attr/textAppearanceMedium"
229                     android:paddingTop="6dip"
230                     android:gravity="center_vertical"
231                     android:paddingLeft="6dip"/>
232                 <ImageView
233                     android:src="@drawable/dotted_line_480px"
234                     android:layout_width="0dip"
235                     android:layout_weight="1"
236                     android:layout_height="1px"
237                     android:layout_gravity="bottom"
238                     android:layout_marginLeft="1dip"
239                     android:layout_marginRight="1dip"
240                     android:layout_marginBottom="4dip"
241                     android:scaleType="center" />
242                 <TextView
243                     android:id="@+id/cache_size_text"
244                     android:textAppearance="?android:attr/textAppearanceMedium"
245                     android:paddingTop="6dip"
246                     android:paddingRight="6dip"
247                     android:layout_height="wrap_content"
248                     android:layout_width="wrap_content"
249                     android:maxLines="1" />
250             </LinearLayout>
251
252             <Button android:id="@+id/clear_cache_button"
253                 android:layout_alignParentRight="true"
254                 android:layout_below="@id/cache_size"
255                 android:layout_centerHorizontal="true"
256                 android:layout_width="150dip"
257                 android:text="@string/clear_cache_btn_text"
258                 android:layout_height="wrap_content" />
259         </RelativeLayout>
260
261         <!-- Prefered activities section -->
262         <TextView
263             style="?android:attr/listSeparatorTextViewStyle"
264             android:text="@string/auto_launch_label" />
265
266         <RelativeLayout 
267             android:layout_width="match_parent"
268             android:layout_height="wrap_content"
269             android:layout_gravity="center_vertical">
270             <TextView android:id="@+id/auto_launch"
271                 android:textAppearance="?android:attr/textAppearanceSmall"
272                 android:layout_alignParentLeft="true"
273                 android:layout_width="match_parent"
274                 android:layout_height="wrap_content"
275                 android:paddingTop="6dip"
276                 android:paddingRight="6dip"
277                 android:paddingLeft="6dip" />
278             <Button android:id="@+id/clear_activities_button"
279                 android:layout_alignParentRight="true"
280                 android:layout_below="@id/auto_launch"
281                 android:layout_centerHorizontal="true"
282                 android:layout_width="150dip"
283                 android:text="@string/clear_activities"
284                 android:layout_height="wrap_content" />
285         </RelativeLayout>
286
287         <!-- Permissions section -->
288         <LinearLayout
289             android:id="@+id/permissions_section"
290             android:layout_width="match_parent"
291             android:layout_height="match_parent"
292             android:orientation="vertical">
293             <TextView
294                 style="?android:attr/listSeparatorTextViewStyle"
295                 android:text="@string/permissions_label" />
296             <TextView
297                 android:text="@string/security_settings_desc"
298                 android:textAppearance="?android:attr/textAppearanceSmall"
299                 android:paddingTop="6dip"
300                 android:paddingLeft="6dip"
301                 android:paddingBottom="6dip"
302                 android:layout_width="match_parent"
303                 android:layout_height="wrap_content" />
304             <LinearLayout
305                 android:id="@+id/security_settings_list"
306                 android:layout_width="match_parent"
307                 android:layout_height="match_parent"
308                 android:orientation="vertical"/>
309         </LinearLayout>
310     </LinearLayout>
311 </ScrollView>
312