Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2015 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 <com.android.packageinstaller.permission.ui.ManualLayoutFrame
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:layout_width="fill_parent"
     20     android:layout_height="fill_parent"
     21     android:clipChildren="false"
     22     android:paddingLeft="16dp"
     23     android:paddingRight="16dp"
     24     android:paddingTop="8dp"
     25     android:paddingBottom="32dp"
     26     android:clipToPadding="false">
     27 
     28     <LinearLayout
     29         android:id="@+id/dialog_container"
     30         android:layout_width="wrap_content"
     31         android:layout_height="wrap_content"
     32         android:orientation="vertical"
     33         android:elevation="16dp"
     34         android:background="@drawable/dialog_background">
     35 
     36         <FrameLayout
     37             android:id="@+id/desc_container"
     38             android:layout_width="match_parent"
     39             android:layout_height="wrap_content"
     40             android:paddingTop="18dip"
     41             android:paddingStart="20dip"
     42             android:paddingEnd="16dip">
     43             <include
     44                 layout="@layout/permission_description" />
     45         </FrameLayout>
     46 
     47         <LinearLayout
     48             android:layout_width="match_parent"
     49             android:layout_height="wrap_content"
     50             android:orientation="vertical"
     51             android:paddingStart="20dip"
     52             android:paddingEnd="16dip">
     53 
     54             <CheckBox
     55                 android:id="@+id/do_not_ask_checkbox"
     56                 android:layout_width="fill_parent"
     57                 android:layout_height="wrap_content"
     58                 android:layout_marginTop="8dp"
     59                 android:layout_marginBottom="-12dp"
     60                 android:minHeight="48dp"
     61                 android:text="@string/never_ask_again"
     62                 android:textColor="?android:attr/textColorPrimary"
     63                 style="?android:attr/textAppearanceSmall"
     64                 android:visibility="gone">
     65             </CheckBox>
     66 
     67             <com.android.packageinstaller.permission.ui.ButtonBarLayout
     68                 android:id="@+id/button_group"
     69                 android:layout_width="match_parent"
     70                 android:layout_height="wrap_content"
     71                 android:orientation="horizontal"
     72                 android:paddingStart="6dip"
     73                 android:paddingTop="4dp"
     74                 android:paddingBottom="4dp"
     75                 android:gravity="bottom">
     76 
     77                 <TextView
     78                     android:id="@+id/current_page_text"
     79                     android:layout_width="wrap_content"
     80                     android:layout_height="wrap_content"
     81                     android:layout_gravity="center_vertical"
     82                     android:paddingEnd="12dp"
     83                     android:singleLine="true"
     84                     style="?android:attr/textAppearanceSmall"
     85                     android:textColor="?android:attr/textColorSecondary"
     86                     android:visibility="invisible">
     87                 </TextView>
     88 
     89                 <Space
     90                     android:id="@+id/spacer"
     91                     android:layout_width="0dp"
     92                     android:layout_height="0dp"
     93                     android:layout_weight="1"
     94                     android:visibility="invisible" >
     95                 </Space>
     96 
     97                 <Button
     98                     android:id="@+id/permission_deny_button"
     99                     android:layout_width="wrap_content"
    100                     android:layout_height="wrap_content"
    101                     style="?android:attr/buttonBarButtonStyle"
    102                     android:text="@string/grant_dialog_button_deny" >
    103                 </Button>
    104 
    105                 <Button
    106                     android:id="@+id/permission_allow_button"
    107                     android:layout_width="wrap_content"
    108                     android:layout_height="wrap_content"
    109                     style="?android:attr/buttonBarButtonStyle"
    110                     android:text="@string/grant_dialog_button_allow" >
    111                 </Button>
    112 
    113             </com.android.packageinstaller.permission.ui.ButtonBarLayout>
    114 
    115         </LinearLayout>
    116 
    117     </LinearLayout>
    118 
    119 </com.android.packageinstaller.permission.ui.ManualLayoutFrame>
    120