• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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:orientation="horizontal"
20    android:paddingLeft="@dimen/action_dialog_padding_left"
21    android:paddingRight="@dimen/action_dialog_padding_right"
22    android:paddingTop="@dimen/action_dialog_padding_top"
23    android:paddingBottom="@dimen/action_dialog_padding_bottom"
24    android:background="@color/grant_permissions_background_color">
25
26    <ImageView
27        android:id="@+id/permission_icon"
28        android:tint="@color/grant_permissions_app_color"
29        android:layout_width="@dimen/grant_permissions_app_icon_size"
30        android:layout_height="@dimen/grant_permissions_app_icon_size"
31        android:layout_marginTop="@dimen/grant_permissions_app_icon_margin_top"/>
32
33    <LinearLayout
34        android:orientation="vertical"
35        android:layout_width="0dp"
36        android:layout_height="wrap_content"
37        android:layout_weight="1"
38        android:layout_marginLeft="@dimen/action_dialog_content_margin_left"
39        android:layout_marginRight="@dimen/action_dialog_content_margin_right">
40        <TextView
41            android:id="@+id/current_page_text"
42            android:layout_width="wrap_content"
43            android:layout_height="wrap_content"
44            android:layout_marginBottom="@dimen/grant_permissions_app_breadcrumb_margin_bottom"
45            android:textAppearance="@style/GrantPermissions.BreadcrumbText" />
46
47        <TextView
48            android:id="@+id/permission_message"
49            android:layout_width="wrap_content"
50            android:layout_height="wrap_content"
51            android:layout_marginBottom="@dimen/grant_permissions_app_title_margin_bottom"
52            android:textAppearance="@style/GrantPermissions.TitleText"/>
53
54        <TextView
55            android:layout_width="match_parent"
56            android:layout_height="0dp"
57            android:layout_marginBottom="@dimen/grant_permissions_app_details_margin_bottom"
58            android:layout_weight="1"
59            android:text="@string/grant_dialog_how_to_change"
60            android:textAppearance="@style/GrantPermissions.BodyText" />
61    </LinearLayout>
62
63    <LinearLayout
64        android:orientation="vertical"
65        android:layout_width="@dimen/action_dialog_actions_width"
66        android:layout_height="wrap_content"
67        android:layout_marginLeft="@dimen/action_dialog_actions_margin_left"
68        android:layout_marginTop="@dimen/action_dialog_actions_margin_top">
69        <Button
70            android:id="@+id/permission_allow_button"
71            android:layout_width="match_parent"
72            android:layout_height="wrap_content"
73            android:text="@string/grant_dialog_button_allow"
74            style="@style/GrantPermissions.ActionItem" />
75
76        <Button
77            android:id="@+id/permission_deny_button"
78            android:layout_width="match_parent"
79            android:layout_height="wrap_content"
80            android:text="@string/grant_dialog_button_deny"
81            style="@style/GrantPermissions.ActionItem" />
82
83        <Button
84            android:id="@+id/permission_deny_dont_ask_again_button"
85            android:layout_width="match_parent"
86            android:layout_height="wrap_content"
87            android:text="@string/grant_dialog_button_deny_dont_ask_again"
88            style="@style/GrantPermissions.ActionItem" />
89    </LinearLayout>
90
91</LinearLayout>
92