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 <!--
     18 Defines the layout of the application snippet that appears on top of the
     19 installation screens
     20 -->
     21 <!-- The snippet about the application - title, icon, description.  -->
     22 <RelativeLayout
     23     xmlns:android="http://schemas.android.com/apk/res/android"
     24     android:id="@+id/app_snippet"
     25     android:layout_width="match_parent"
     26     android:layout_height="wrap_content"
     27     android:paddingStart="16dip"
     28     android:paddingEnd="16dip"
     29     android:paddingTop="24dip"
     30     >
     31     <ImageView android:id="@+id/app_icon"
     32         android:layout_width="32dip"
     33         android:layout_height="32dip"
     34         android:layout_marginStart="8dip"
     35         android:background="@color/transparent"
     36         android:layout_alignParentStart="true"
     37         android:gravity="start"
     38         android:scaleType="centerCrop"/>
     39     <TextView android:id="@+id/app_name"
     40         android:layout_width="wrap_content"
     41         android:layout_height="wrap_content"
     42         android:gravity="center"
     43         android:textAppearance="?android:attr/textAppearanceLarge"
     44         android:textColor="?android:attr/textColorPrimary"
     45         android:shadowColor="@color/shadow"
     46         android:shadowRadius="2"
     47         android:layout_toEndOf="@id/app_icon"
     48         android:singleLine="true"
     49         android:layout_centerInParent="true"
     50         android:paddingEnd="16dip"
     51         android:paddingTop="3dip"
     52         android:paddingStart="16dip"
     53         android:ellipsize="end"/>
     54     <FrameLayout
     55         android:id="@+id/top_divider"
     56         android:layout_width="match_parent"
     57         android:layout_height="wrap_content"
     58         android:paddingTop="4dip"
     59         android:layout_below="@id/app_name">
     60         <ProgressBar
     61             android:id="@+id/progress_bar"
     62             style="?android:attr/progressBarStyleHorizontal"
     63             android:layout_width="match_parent"
     64             android:layout_height="wrap_content" />
     65     </FrameLayout>
     66     
     67 </RelativeLayout>
     68 
     69