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 splash screen that displays the security
     20   settings required for an application and requests the confirmation of the
     21   user before it is installed.
     22 -->
     23 
     24 <LinearLayout
     25         xmlns:android="http://schemas.android.com/apk/res/android"
     26         android:orientation="vertical"
     27         android:layout_width="match_parent"
     28         android:layout_height="match_parent">
     29 
     30     <TextView
     31             android:id="@+id/install_confirm_question"
     32             android:layout_width="wrap_content"
     33             android:layout_height="wrap_content"
     34             android:text="@string/install_confirm_question"
     35             android:textAppearance="?android:attr/textAppearanceMedium"
     36             style="@style/padded"
     37             android:paddingTop="4dip" />
     38 
     39     <ImageView
     40             android:id="@+id/divider"
     41             android:layout_width="match_parent"
     42             android:layout_height="wrap_content"
     43             android:layout_marginTop="16dp"
     44             android:background="?android:attr/dividerHorizontal"
     45             android:visibility="gone" />
     46 
     47     <FrameLayout
     48         android:id="@+id/filler"
     49         android:layout_width="match_parent"
     50         android:layout_height="wrap_content"
     51         android:layout_weight="1"
     52         android:visibility="gone">
     53     </FrameLayout>
     54 
     55     <TabHost
     56         android:id="@android:id/tabhost"
     57         android:layout_width="match_parent"
     58         android:layout_height="wrap_content"
     59         android:layout_weight="1">
     60 
     61         <LinearLayout
     62             android:orientation="vertical"
     63             android:layout_width="match_parent"
     64             android:layout_height="match_parent">
     65 
     66             <HorizontalScrollView android:id="@+id/tabscontainer"
     67                 android:layout_width="match_parent"
     68                 android:layout_height="wrap_content"
     69                 android:background="@*android:drawable/tab_unselected_holo"
     70                 android:fillViewport="true"
     71                 android:scrollbars="none">
     72                 <FrameLayout android:layout_width="match_parent"
     73                              android:layout_height="wrap_content">
     74                     <TabWidget
     75                         android:id="@android:id/tabs"
     76                         android:orientation="horizontal"
     77                         android:layout_width="wrap_content"
     78                         android:layout_height="wrap_content"
     79                         android:layout_gravity="center" />
     80                 </FrameLayout>
     81             </HorizontalScrollView>
     82 
     83             <FrameLayout
     84                 android:id="@android:id/tabcontent"
     85                 android:layout_width="0dp"
     86                 android:layout_height="0dp"
     87                 android:layout_weight="0"/>
     88 
     89             <android.support.v4.view.ViewPager
     90                 android:id="@+id/pager"
     91                 android:layout_width="match_parent"
     92                 android:layout_height="0dp"
     93                 android:layout_weight="1"/>
     94 
     95         </LinearLayout>
     96     </TabHost>
     97 
     98     <!-- OK confirm and cancel buttons.  -->
     99     <LinearLayout
    100             android:layout_width="match_parent"
    101             android:layout_height="wrap_content"
    102             android:orientation="vertical"
    103             android:divider="?android:attr/dividerHorizontal"
    104             android:showDividers="beginning">
    105 
    106         <LinearLayout
    107                 style="?android:attr/buttonBarStyle"
    108                 android:layout_width="match_parent"
    109                 android:layout_height="wrap_content"
    110                 android:orientation="horizontal"
    111                 android:measureWithLargestChild="true">
    112 
    113             <LinearLayout android:id="@+id/leftSpacer"
    114                     android:layout_weight="0.25"
    115                     android:layout_width="0dip"
    116                     android:layout_height="wrap_content"
    117                     android:orientation="horizontal"
    118                     android:visibility="gone" />
    119 
    120             <Button android:id="@+id/cancel_button"
    121                     android:layout_width="0dip"
    122                     android:layout_height="wrap_content"
    123                     android:layout_gravity="start"
    124                     android:layout_weight="1"
    125                     android:text="@string/cancel"
    126                     android:maxLines="2"
    127                     style="?android:attr/buttonBarButtonStyle" />
    128 
    129             <Button android:id="@+id/ok_button"
    130                     android:layout_width="0dip"
    131                     android:layout_height="wrap_content"
    132                     android:layout_gravity="end"
    133                     android:layout_weight="1"
    134                     android:text="@string/next"
    135                     android:maxLines="2"
    136                     android:filterTouchesWhenObscured="true"
    137                     style="?android:attr/buttonBarButtonStyle" />
    138 
    139             <LinearLayout android:id="@+id/rightSpacer"
    140                     android:layout_width="0dip"
    141                     android:layout_weight="0.25"
    142                     android:layout_height="wrap_content"
    143                     android:orientation="horizontal"
    144                     android:visibility="gone" />
    145 
    146         </LinearLayout>
    147     </LinearLayout>
    148 </LinearLayout>
    149