1<?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 --> 17<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" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content" 22 android:layout_marginStart="8dp" 23 android:layout_marginEnd="8dp" 24 android:layout_marginTop="8dp" 25 app:cardElevation="2dp"> 26 27 <RelativeLayout 28 android:layout_width="match_parent" 29 android:layout_height="wrap_content" 30 android:paddingStart="16dp" 31 android:paddingEnd="16dp" 32 android:paddingTop="16dp" 33 android:paddingBottom="12dp"> 34 35 <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"/> 41 42 <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" 50 style="@style/Dialer.TextAppearance.Primary"/> 51 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" 74 android:textColor="?android:attr/colorPrimary" 75 style="@style/Widget.AppCompat.Button.Borderless"/> 76 </RelativeLayout> 77</android.support.v7.widget.CardView>