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 
     19   Defines the layout of the confirmation screen that gets displayed when an
     20   application is about to be uninstalled. Includes ok and cancel buttons
     21   to let the uinstallation continue or abort.
     22 -->
     23 
     24 <RelativeLayout
     25     xmlns:android="http://schemas.android.com/apk/res/android"
     26     android:layout_width="match_parent"
     27     android:layout_height="match_parent">
     28 
     29     <!-- The snippet about the application - title, icon, description.  -->
     30     <include
     31         layout="@layout/app_details"
     32         android:layout_alignParentTop="true"
     33         android:id="@+id/app_snippet" />
     34 
     35     <!-- uninstall application confirmation question -->
     36     <TextView
     37         android:id="@+id/uninstall_question"
     38         android:layout_width="match_parent"
     39         android:layout_height="wrap_content"
     40         android:textStyle="bold"
     41         android:paddingTop="16dip"
     42         android:paddingLeft="16dip"
     43         android:layout_below="@id/app_snippet"
     44         android:textColor="?android:attr/textColorSecondary"
     45         android:textAppearance="?android:attr/textAppearanceMedium"       
     46         android:paddingBottom="36dip"/>
     47 
     48     <!-- uninstall application confirmation text -->
     49     <TextView
     50         android:id="@+id/uninstall_confirm_text"
     51         android:layout_width="wrap_content"
     52         android:layout_height="wrap_content"
     53         android:textColor="?android:attr/textColorSecondary"
     54         android:textAppearance="?android:attr/textAppearanceMedium"       
     55         android:layout_below="@id/uninstall_question"
     56         android:paddingLeft="16dip"/>
     57 
     58     <!-- OK confirm and cancel buttons.  -->
     59     <LinearLayout
     60         android:layout_width="match_parent"
     61         android:layout_height="wrap_content"
     62         android:layout_alignParentBottom="true"
     63         android:orientation="horizontal"
     64         style="@android:style/ButtonBar"
     65     >
     66         <Button android:id="@+id/ok_button"
     67             android:layout_width="0dip"
     68             android:layout_height="wrap_content"
     69             android:layout_weight="1"
     70             android:text="@string/ok"
     71         />
     72 
     73         <Button android:id="@+id/cancel_button"
     74             android:layout_width="0dip"
     75             android:layout_height="wrap_content"
     76             android:layout_weight="1"
     77             android:text="@string/cancel"
     78         />
     79     </LinearLayout>
     80 </RelativeLayout>
     81