• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
18        android:layout_width="match_parent"
19        android:layout_height="match_parent"
20        android:orientation="vertical">
21            <!-- Launch and close buttons.  -->
22    <LinearLayout android:id="@+id/buttons_panel"
23            android:layout_width="match_parent"
24            android:layout_height="wrap_content"
25            android:layout_alignParentBottom="true"
26            android:orientation="vertical"
27            android:divider="?android:attr/dividerHorizontal"
28            android:showDividers="beginning"
29            android:paddingTop="16dip">
30
31        <LinearLayout
32                style="?android:attr/buttonBarStyle"
33                android:layout_width="match_parent"
34                android:layout_height="wrap_content"
35                android:orientation="horizontal"
36                android:measureWithLargestChild="true">
37
38            <LinearLayout android:id="@+id/leftSpacer"
39                    android:layout_weight="0.25"
40                    android:layout_width="0dip"
41                    android:layout_height="wrap_content"
42                    android:orientation="horizontal"
43                    android:visibility="gone" />
44
45            <Button android:id="@+id/done_button"
46                    android:layout_width="0dip"
47                    android:layout_height="wrap_content"
48                    android:layout_gravity="left"
49                    android:layout_weight="1"
50                    android:text="@string/done"
51                    android:maxLines="2"
52                    style="?android:attr/buttonBarButtonStyle" />
53
54            <Button android:id="@+id/launch_button"
55                    android:layout_width="0dip"
56                    android:layout_height="wrap_content"
57                    android:layout_gravity="right"
58                    android:layout_weight="1"
59                    android:text="@string/launch"
60                    android:maxLines="2"
61                    style="?android:attr/buttonBarButtonStyle" />
62
63            <LinearLayout android:id="@+id/rightSpacer"
64                    android:layout_width="0dip"
65                    android:layout_weight="0.25"
66                    android:layout_height="wrap_content"
67                    android:orientation="horizontal"
68                    android:visibility="gone" />
69
70        </LinearLayout>
71    </LinearLayout>
72
73    <include
74            layout="@layout/app_details"
75            android:id="@+id/app_snippet"
76            android:layout_width="match_parent"
77            android:layout_height="wrap_content"
78            android:layout_alignParentTop="true" />
79
80    <TextView
81            android:id="@+id/center_text"
82            android:layout_width="match_parent"
83            android:layout_height="wrap_content"
84            android:layout_below="@id/app_snippet"
85            android:gravity="left"
86            android:text="@string/installing"
87            android:paddingTop="16dip"
88            android:paddingLeft="32dip"
89            android:paddingRight="32dip"
90            android:textAppearance="?android:attr/textAppearanceMedium" />
91
92    <!-- This explanation text is shown only after the progress bar below goes away. -->
93    <ScrollView
94            android:layout_width="match_parent"
95            android:layout_height="wrap_content"
96            android:layout_above="@id/buttons_panel"
97            android:layout_below="@id/center_text"
98            android:paddingTop="8dip"
99            android:paddingLeft="16dip"
100            android:paddingBottom="16dip">
101        <TextView
102                android:id="@+id/center_explanation"
103                android:layout_width="match_parent"
104                android:layout_height="wrap_content"
105                android:gravity="center_horizontal"
106                android:visibility="gone"
107                android:textAppearance="?android:attr/textAppearanceSmall"/>
108    </ScrollView>
109
110</RelativeLayout>
111
112
113