1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2016 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License
16  -->
17<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18  android:orientation="vertical"
19  android:layout_width="match_parent"
20  android:layout_height="match_parent"
21  android:gravity="center"
22  android:clickable="true"
23  android:background="?android:attr/colorBackground">
24
25  <ImageView
26    android:id="@+id/permission_icon"
27    android:layout_width="@dimen/permission_image_size"
28    android:layout_height="@dimen/permission_image_size"
29    android:layout_margin="@dimen/permission_item_margin"/>
30
31  <TextView
32    android:id="@+id/permission_text"
33    android:layout_width="wrap_content"
34    android:layout_height="wrap_content"
35    android:layout_marginTop="@dimen/permission_item_margin"
36    style="@style/Dialer.TextAppearance.Header2"/>
37
38  <TextView
39    android:id="@+id/allow"
40    android:layout_width="wrap_content"
41    android:layout_height="wrap_content"
42    android:minHeight="@dimen/min_touch_target_size"
43    android:minWidth="@dimen/min_touch_target_size"
44    android:gravity="center"
45    android:text="@string/allow"
46    android:textAllCaps="true"
47    android:textSize="@dimen/allow_permission_text_size"
48    android:textColor="?android:attr/colorPrimary"
49    android:background="?android:attr/selectableItemBackground"
50    android:padding="@dimen/permission_allow_padding"
51    android:theme="@style/Theme.AppCompat.Light"/>
52</LinearLayout>