blob: 41ffb451700cac9101c55d349385a3a3e78c3c33 [file] [log] [blame]
calderwoodraf7d8f632017-09-20 14:03:33 -07001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 ~ Copyright (C) 2017 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 -->
calderwoodra6d679752017-11-21 10:53:53 -080017<android.support.v7.widget.CardView
18 xmlns:android="http://schemas.android.com/apk/res/android"
19 xmlns:app="http://schemas.android.com/apk/res-auto"
calderwoodraf7d8f632017-09-20 14:03:33 -070020 android:layout_width="match_parent"
21 android:layout_height="wrap_content"
calderwoodra6d679752017-11-21 10:53:53 -080022 android:layout_marginStart="8dp"
23 android:layout_marginEnd="8dp"
24 android:layout_marginTop="8dp"
25 app:cardElevation="2dp">
calderwoodraf7d8f632017-09-20 14:03:33 -070026
calderwoodra6d679752017-11-21 10:53:53 -080027 <RelativeLayout
28 android:layout_width="match_parent"
calderwoodraf7d8f632017-09-20 14:03:33 -070029 android:layout_height="wrap_content"
calderwoodra6d679752017-11-21 10:53:53 -080030 android:paddingStart="16dp"
31 android:paddingEnd="16dp"
32 android:paddingTop="16dp"
33 android:paddingBottom="12dp">
calderwoodraf7d8f632017-09-20 14:03:33 -070034
calderwoodra6d679752017-11-21 10:53:53 -080035 <ImageView
36 android:id="@+id/permission_image"
37 android:layout_width="40dp"
38 android:layout_height="40dp"
39 android:layout_marginEnd="16dp"
40 android:src="@drawable/business_asset"/>
calderwoodra13221d72017-09-20 16:08:29 -070041
calderwoodra6d679752017-11-21 10:53:53 -080042 <TextView
43 android:id="@+id/permission_text"
44 android:layout_width="wrap_content"
45 android:layout_height="wrap_content"
46 android:layout_toEndOf="@id/permission_image"
47 android:minHeight="40dp"
48 android:text="@string/search_location_permission"
49 android:lineSpacingMultiplier="1.2"
calderwoodrac5c42182018-05-22 15:30:39 -070050 style="@style/Dialer.TextAppearance.Primary"/>
calderwoodra6d679752017-11-21 10:53:53 -080051
52 <Button
53 android:id="@+id/location_permission_allow"
54 android:layout_width="wrap_content"
55 android:layout_height="52dp"
56 android:layout_alignParentEnd="true"
57 android:layout_below="@id/permission_text"
58 android:layout_marginTop="18dp"
59 android:paddingTop="8dp"
60 android:paddingBottom="8dp"
61 android:text="@string/nearby_places_allow"/>
62
63 <Button
64 android:id="@+id/location_permission_dismiss"
65 android:layout_width="wrap_content"
66 android:layout_height="52dp"
67 android:layout_toStartOf="@+id/location_permission_allow"
68 android:layout_below="@id/permission_text"
69 android:layout_marginEnd="8dp"
70 android:layout_marginTop="18dp"
71 android:paddingTop="8dp"
72 android:paddingBottom="8dp"
73 android:text="@string/nearby_places_dismiss"
calderwoodra929539e2018-05-19 00:05:02 -070074 android:textColor="?android:attr/colorPrimary"
calderwoodra6d679752017-11-21 10:53:53 -080075 style="@style/Widget.AppCompat.Button.Borderless"/>
76 </RelativeLayout>
77</android.support.v7.widget.CardView>