Home | History | Annotate | Download | only in layout
      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 <LinearLayout 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 
     22     <include layout="@layout/app_details"
     23             android:id="@+id/app_snippet" />
     24 
     25     <LinearLayout android:id="@+id/center_view"
     26             android:layout_width="match_parent"
     27             android:layout_height="wrap_content"
     28             android:layout_weight="1"
     29             android:gravity="center"
     30             android:orientation="vertical"
     31             android:paddingLeft="16dip"
     32             android:paddingRight="16dip">
     33 
     34         <ImageView android:id="@+id/center_icon"
     35                 android:layout_width="wrap_content"
     36                 android:layout_height="wrap_content"
     37                 android:layout_marginBottom="12dp"
     38                 android:src="@drawable/ic_android_92"
     39                 android:contentDescription="@null" />
     40 
     41         <ProgressBar android:id="@+id/progress_bar"
     42                 android:layout_width="250dp"
     43                 android:layout_height="wrap_content"
     44                 android:indeterminate="true"
     45                 style="?android:attr/progressBarStyleHorizontal">
     46         </ProgressBar>
     47 
     48         <TextView android:id="@+id/center_text"
     49                 android:layout_width="wrap_content"
     50                 android:layout_height="wrap_content"
     51                 android:gravity="center_horizontal"
     52                 android:text="@string/installing"
     53                 android:textAppearance="?android:attr/textAppearanceMedium" />
     54 
     55     </LinearLayout>
     56 
     57     <!-- This explanation text is shown only after the progress bar below goes away. -->
     58     <ScrollView android:id="@+id/explanation_view"
     59             android:layout_width="match_parent"
     60             android:layout_height="wrap_content"
     61             android:layout_weight="1"
     62             android:visibility="gone"
     63             android:paddingLeft="16dip"
     64             android:paddingRight="16dip">
     65 
     66         <LinearLayout android:layout_width="match_parent"
     67                 android:layout_height="wrap_content"
     68                 android:orientation="vertical">
     69 
     70             <TextView android:id="@+id/explanation_status"
     71                     android:layout_width="wrap_content"
     72                     android:layout_height="wrap_content"
     73                     android:layout_marginBottom="8dp"
     74                     android:textAppearance="?android:attr/textAppearanceMedium" />
     75 
     76             <TextView android:id="@+id/explanation"
     77                     android:layout_width="match_parent"
     78                     android:layout_height="wrap_content"
     79                     android:textAppearance="?android:attr/textAppearanceSmall" />
     80 
     81         </LinearLayout>
     82 
     83     </ScrollView>
     84 
     85     <LinearLayout android:id="@+id/buttons_panel"
     86             style="?android:attr/buttonBarStyle"
     87             android:layout_width="match_parent"
     88             android:layout_height="wrap_content"
     89             android:orientation="horizontal"
     90             android:measureWithLargestChild="true"
     91             android:padding="8dip">
     92 
     93         <!-- spacer to push buttons to the right -->
     94         <View android:layout_width="0dp"
     95                 android:layout_height="0dp"
     96                 android:layout_weight="1" />
     97 
     98         <Button android:id="@+id/done_button"
     99                 android:layout_width="wrap_content"
    100                 android:layout_height="wrap_content"
    101                 android:text="@string/done"
    102                 android:maxLines="2"
    103                 style="?android:attr/buttonBarButtonStyle" />
    104 
    105         <Button android:id="@+id/launch_button"
    106                 android:layout_width="wrap_content"
    107                 android:layout_height="wrap_content"
    108                 android:text="@string/launch"
    109                 android:maxLines="2"
    110                 style="?android:attr/buttonBarButtonStyle" />
    111 
    112     </LinearLayout>
    113 
    114 </LinearLayout>
    115 
    116 
    117