calderwoodra | f7d8f63 | 2017-09-20 14:03:33 -0700 | [diff] [blame] | 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 | --> |
calderwoodra | 6d67975 | 2017-11-21 10:53:53 -0800 | [diff] [blame] | 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" |
calderwoodra | f7d8f63 | 2017-09-20 14:03:33 -0700 | [diff] [blame] | 20 | android:layout_width="match_parent" |
| 21 | android:layout_height="wrap_content" |
calderwoodra | 6d67975 | 2017-11-21 10:53:53 -0800 | [diff] [blame] | 22 | android:layout_marginStart="8dp" |
| 23 | android:layout_marginEnd="8dp" |
| 24 | android:layout_marginTop="8dp" |
| 25 | app:cardElevation="2dp"> |
calderwoodra | f7d8f63 | 2017-09-20 14:03:33 -0700 | [diff] [blame] | 26 | |
calderwoodra | 6d67975 | 2017-11-21 10:53:53 -0800 | [diff] [blame] | 27 | <RelativeLayout |
| 28 | android:layout_width="match_parent" |
calderwoodra | f7d8f63 | 2017-09-20 14:03:33 -0700 | [diff] [blame] | 29 | android:layout_height="wrap_content" |
calderwoodra | 6d67975 | 2017-11-21 10:53:53 -0800 | [diff] [blame] | 30 | android:paddingStart="16dp" |
| 31 | android:paddingEnd="16dp" |
| 32 | android:paddingTop="16dp" |
| 33 | android:paddingBottom="12dp"> |
calderwoodra | f7d8f63 | 2017-09-20 14:03:33 -0700 | [diff] [blame] | 34 | |
calderwoodra | 6d67975 | 2017-11-21 10:53:53 -0800 | [diff] [blame] | 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"/> |
calderwoodra | 13221d7 | 2017-09-20 16:08:29 -0700 | [diff] [blame] | 41 | |
calderwoodra | 6d67975 | 2017-11-21 10:53:53 -0800 | [diff] [blame] | 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" |
calderwoodra | c5c4218 | 2018-05-22 15:30:39 -0700 | [diff] [blame] | 50 | style="@style/Dialer.TextAppearance.Primary"/> |
calderwoodra | 6d67975 | 2017-11-21 10:53:53 -0800 | [diff] [blame] | 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" |
calderwoodra | 929539e | 2018-05-19 00:05:02 -0700 | [diff] [blame] | 74 | android:textColor="?android:attr/colorPrimary" |
calderwoodra | 6d67975 | 2017-11-21 10:53:53 -0800 | [diff] [blame] | 75 | style="@style/Widget.AppCompat.Button.Borderless"/> |
| 76 | </RelativeLayout> |
| 77 | </android.support.v7.widget.CardView> |