Jay Aliomer | 41ee566 | 2020-04-19 21:44:26 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2020 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:id="@+id/request_background_location_permission" |
| 20 | android:layout_width="match_parent" |
| 21 | android:layout_height="wrap_content" |
| 22 | android:orientation="vertical"> |
| 23 | |
| 24 | <LinearLayout |
| 25 | android:layout_width="match_parent" |
| 26 | android:paddingStart="8dp" |
| 27 | android:paddingEnd="10dp" |
| 28 | android:paddingTop="18dp" |
| 29 | android:paddingBottom="0dp" |
| 30 | android:layout_height="wrap_content" |
| 31 | android:orientation="horizontal"> |
| 32 | |
| 33 | <ImageView |
| 34 | android:layout_width="40dp" |
| 35 | android:layout_height="wrap_content" |
| 36 | android:src="@drawable/ic_settings_location" |
| 37 | android:tint="?android:attr/colorAccent"/> |
| 38 | |
| 39 | <TextView |
| 40 | android:layout_width="wrap_content" |
| 41 | android:layout_height="wrap_content" |
| 42 | android:layout_marginStart="24dp" |
| 43 | android:paddingRight="2dp" |
| 44 | android:gravity="center_vertical" |
| 45 | android:text="@string/twilight_mode_location_off_dialog_message" |
| 46 | android:textAppearance="?attr/textAppearanceSubtitle1" |
| 47 | android:textSize="16sp" |
| 48 | android:textColor="?android:attr/textColorPrimary"/> |
| 49 | |
| 50 | </LinearLayout> |
| 51 | |
| 52 | <Button |
| 53 | android:id="@+id/go_to_location_setting" |
| 54 | android:layout_width="wrap_content" |
| 55 | android:layout_height="wrap_content" |
| 56 | android:text="@string/twilight_mode_launch_location" |
| 57 | style="@style/Widget.AppCompat.Button.Borderless.Colored" |
| 58 | android:layout_gravity="end"/> |
| 59 | |
| 60 | </LinearLayout> |