1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2008 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="match_parent" 20 android:layout_height="match_parent" 21 android:fillViewport="true" > 22 <RelativeLayout 23 android:orientation="vertical" 24 android:layout_width="match_parent" 25 android:layout_height="match_parent"> 26 <include 27 layout="@layout/app_details" 28 android:id="@+id/app_snippet"/> 29 <TextView 30 android:id="@+id/center_text" 31 android:layout_width="wrap_content" 32 android:layout_height="wrap_content" 33 android:layout_centerHorizontal="true" 34 android:layout_centerVertical="true" 35 android:textAppearance="?android:attr/textAppearanceMedium" /> 36 <ProgressBar 37 android:id="@+id/progress_bar" 38 style="?android:attr/progressBarStyleHorizontal" 39 android:layout_width="match_parent" 40 android:layout_height="wrap_content" 41 android:paddingTop="24dip" 42 android:layout_below="@id/center_text" 43 android:max="100" /> 44 45 <!-- Button bar with OK button --> 46 <LinearLayout android:id="@+id/ok_panel" 47 android:layout_width="match_parent" 48 android:layout_height="wrap_content" 49 android:layout_alignParentBottom="true" 50 android:orientation="horizontal" 51 style="@android:style/ButtonBar" 52 > 53 <!-- Left spacer --> 54 <View 55 android:layout_width="0dip" 56 android:layout_height="match_parent" 57 android:layout_weight="1" 58 /> 59 60 <Button android:id="@+id/ok_button" 61 android:layout_width="0dip" 62 android:layout_height="wrap_content" 63 android:layout_weight="2" 64 android:text="@string/ok" 65 /> 66 67 <!-- Right spacer --> 68 <View 69 android:layout_width="0dip" 70 android:layout_height="match_parent" 71 android:layout_weight="1" 72 /> 73 </LinearLayout> 74 </RelativeLayout> 75 </ScrollView> 76