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<LinearLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:id="@+id/grant_dialog" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content" 22 android:gravity="center_vertical" 23 android:orientation="horizontal" 24 android:padding="@dimen/grant_permissions_dialog_padding"> 25 26 <LinearLayout 27 android:layout_width="wrap_content" 28 android:layout_height="wrap_content" 29 android:layout_weight="1" 30 android:orientation="horizontal"> 31 <ImageView 32 android:id="@+id/permission_icon" 33 android:layout_width="@dimen/grant_permissions_app_icon_size" 34 android:layout_height="@dimen/grant_permissions_app_icon_size" 35 android:tint="@color/grant_permissions_app_color"/> 36 37 <LinearLayout 38 android:layout_width="wrap_content" 39 android:layout_height="wrap_content" 40 android:layout_marginLeft="@dimen/action_dialog_content_margin_left" 41 android:orientation="vertical"> 42 <TextView 43 android:id="@+id/current_page_text" 44 android:layout_width="wrap_content" 45 android:layout_height="wrap_content" 46 android:layout_marginBottom="@dimen/grant_permissions_app_breadcrumb_margin_bottom" 47 android:textAppearance="@style/GrantPermissions.BreadcrumbText" /> 48 49 <TextView 50 android:id="@+id/permission_message" 51 android:layout_width="wrap_content" 52 android:layout_height="wrap_content" 53 android:layout_marginBottom="@dimen/grant_permissions_app_title_margin_bottom" 54 android:textAppearance="@style/GrantPermissions.TitleText"/> 55 56 <TextView 57 android:layout_width="match_parent" 58 android:layout_height="wrap_content" 59 android:layout_marginBottom="@dimen/grant_permissions_app_details_margin_bottom" 60 android:text="@string/grant_dialog_how_to_change" 61 android:textAppearance="@style/GrantPermissions.BodyText" /> 62 </LinearLayout> 63 </LinearLayout> 64 65 <LinearLayout 66 android:orientation="vertical" 67 android:layout_width="@dimen/action_dialog_actions_width" 68 android:layout_height="wrap_content" 69 android:layout_marginLeft="@dimen/grant_permissions_actions_margin_left" 70 android:layout_marginRight="@dimen/grant_permissions_actions_margin_right"> 71 <Button 72 android:id="@+id/permission_allow_button" 73 android:layout_width="match_parent" 74 android:layout_height="wrap_content" 75 android:text="@string/grant_dialog_button_allow" 76 style="@style/GrantPermissions.ActionItem" /> 77 78 <Button 79 android:id="@+id/permission_allow_always_button" 80 android:layout_width="match_parent" 81 android:layout_height="wrap_content" 82 android:text="@string/grant_dialog_button_allow_always" 83 style="@style/GrantPermissions.ActionItem" /> 84 85 <Button 86 android:id="@+id/permission_allow_foreground_only_button" 87 android:layout_width="match_parent" 88 android:layout_height="wrap_content" 89 android:text="@string/grant_dialog_button_allow_foreground" 90 style="@style/GrantPermissions.ActionItem" /> 91 92 <Button 93 android:id="@+id/permission_allow_one_time_button" 94 android:layout_width="match_parent" 95 android:layout_height="wrap_content" 96 android:text="@string/grant_dialog_button_allow_one_time" 97 style="@style/GrantPermissions.ActionItem" /> 98 99 <Button 100 android:id="@+id/permission_deny_button" 101 android:layout_width="match_parent" 102 android:layout_height="wrap_content" 103 android:text="@string/grant_dialog_button_deny" 104 style="@style/GrantPermissions.ActionItem" /> 105 106 <Button 107 android:id="@+id/permission_deny_dont_ask_again_button" 108 android:layout_width="match_parent" 109 android:layout_height="wrap_content" 110 android:text="@string/grant_dialog_button_deny_dont_ask_again" 111 style="@style/GrantPermissions.ActionItem" /> 112 </LinearLayout> 113 114</LinearLayout> 115