Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 
      3 <!-- Copyright (C) 2016 The Android Open Source Project
      4 
      5      Licensed under the Apache License, Version 2.0 (the "License");
      6      you may not use this file except in compliance with the License.
      7      You may obtain a copy of the License at
      8 
      9           http://www.apache.org/licenses/LICENSE-2.0
     10 
     11      Unless required by applicable law or agreed to in writing, software
     12      distributed under the License is distributed on an "AS IS" BASIS,
     13      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14      See the License for the specific language governing permissions and
     15      limitations under the License.
     16 -->
     17 
     18 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     19         android:layout_width="match_parent"
     20         android:layout_height="match_parent"
     21         android:orientation="vertical">
     22 
     23     <LinearLayout android:id="@+id/app_snippet"
     24             android:background="?android:attr/colorPrimary"
     25             android:layout_width="match_parent"
     26             android:layout_height="?android:attr/actionBarSize"
     27             android:orientation="horizontal"
     28             android:elevation="@dimen/headerElevation"
     29             android:gravity="center_vertical">
     30 
     31         <ImageView
     32                 android:id="@+id/app_icon"
     33                 android:layout_width="24dp"
     34                 android:layout_height="24dp"
     35                 android:layout_marginStart="16dp"
     36                 android:scaleType="fitCenter" />
     37 
     38         <TextView
     39                 android:id="@+id/app_name"
     40                 android:layout_width="wrap_content"
     41                 android:layout_height="wrap_content"
     42                 android:layout_marginStart="32dp"
     43                 android:layout_marginEnd="16dp"
     44                 android:ellipsize="end"
     45                 android:singleLine="true"
     46                 android:textAppearance="?android:attr/titleTextStyle" />
     47 
     48     </LinearLayout>
     49 
     50     <LinearLayout
     51             android:layout_width="match_parent"
     52             android:layout_height="wrap_content"
     53             android:layout_weight="1"
     54             android:gravity="center"
     55             android:orientation="vertical"
     56             android:paddingLeft="16dip"
     57             android:paddingRight="16dip">
     58 
     59         <ImageView
     60                 android:layout_width="92dp"
     61                 android:layout_height="92dp"
     62                 android:layout_marginBottom="12dp"
     63                 android:contentDescription="@null"
     64                 android:tint="@color/bigIconColor"
     65                 android:src="@drawable/ic_file_download" />
     66 
     67         <ProgressBar
     68                 android:id="@+id/progress_bar"
     69                 style="?android:attr/progressBarStyleHorizontal"
     70                 android:layout_width="250dp"
     71                 android:layout_height="wrap_content"
     72                 android:indeterminate="false" />
     73 
     74         <TextView
     75                 android:id="@+id/center_text"
     76                 android:layout_width="wrap_content"
     77                 android:layout_height="wrap_content"
     78                 android:gravity="center_horizontal"
     79                 android:text="@string/installing"
     80                 android:textAppearance="?android:attr/textAppearanceMedium" />
     81 
     82     </LinearLayout>
     83 
     84     <LinearLayout
     85             android:id="@+id/buttons_panel"
     86             style="?android:attr/buttonBarStyle"
     87             android:layout_width="match_parent"
     88             android:layout_height="wrap_content"
     89             android:measureWithLargestChild="true"
     90             android:orientation="horizontal"
     91             android:padding="8dip">
     92 
     93         <View
     94                 android:layout_width="0dp"
     95                 android:layout_height="0dp"
     96                 android:layout_weight="1" />
     97 
     98         <Button
     99                 android:id="@+id/cancel_button"
    100                 style="?android:attr/buttonBarButtonStyle"
    101                 android:layout_width="wrap_content"
    102                 android:layout_height="wrap_content"
    103                 android:maxLines="2"
    104                 android:text="@string/cancel" />
    105 
    106     </LinearLayout>
    107 
    108 </LinearLayout>
    109