1<?xml version="1.0" encoding="utf-8"?><!-- 2 Copyright (C) 2022 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<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 17 android:layout_width="match_parent" 18 android:layout_height="wrap_content"> 19 20 <LinearLayout 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content" 23 android:paddingHorizontal="@dimen/spacing_small" 24 android:orientation="vertical"> 25 26 <LinearLayout 27 android:layout_width="match_parent" 28 android:layout_height="wrap_content" 29 android:orientation="vertical" 30 android:gravity="?attr/alertDialogTitleGravity"> 31 <ImageView 32 android:id="@+id/dialog_icon" 33 android:layout_width="@dimen/icon_size" 34 android:layout_height="@dimen/icon_size" 35 android:layout_marginTop="@dimen/spacing_large" 36 android:layout_marginBottom="@dimen/spacing_normal" 37 android:visibility="?attr/alertDialogTitleIconVisibility" 38 android:tint="?android:attr/colorAccent" /> 39 40 <TextView 41 android:id="@+id/dialog_title" 42 android:layout_width="wrap_content" 43 android:layout_height="wrap_content" 44 android:paddingHorizontal="@dimen/spacing_small" 45 android:layout_marginBottom="@dimen/spacing_normal" 46 android:maxLines="4" 47 android:singleLine="false" 48 android:textAlignment="?attr/alertDialogTitleTextAlignment" 49 android:textAppearance="?attr/textAppearanceHeadline4" /> 50 </LinearLayout> 51 52 <TextView 53 android:id="@+id/time_range_message" 54 android:layout_width="match_parent" 55 android:layout_height="wrap_content" 56 android:paddingStart="?android:attr/listPreferredItemPaddingStart" 57 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" 58 android:paddingBottom="@dimen/spacing_small" 59 style="?attr/textAppearanceSummary" 60 android:text="@string/time_range_message_all" /> 61 <!-- by default the first radio button is checked --> 62 <RadioGroup 63 android:id="@+id/radio_group_time_range" 64 android:layout_height="wrap_content" 65 android:layout_width="wrap_content" 66 android:paddingStart="?android:attr/listPreferredItemPaddingStart" 67 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" 68 android:checkedButton="@+id/radio_button_one_day"> 69 70 <RadioButton 71 android:id="@+id/radio_button_one_day" 72 android:text="@string/time_range_one_day" 73 android:layout_width="wrap_content" 74 android:layout_height="wrap_content" 75 android:minHeight="?android:attr/listPreferredItemHeight" 76 android:paddingStart="?android:attr/listPreferredItemPaddingStart" 77 android:paddingEnd="0dp" 78 android:textAppearance="?attr/textAppearanceSummary" 79 android:textColor="?android:attr/textColorPrimary"/> 80 81 <RadioButton 82 android:id="@+id/radio_button_one_week" 83 android:text="@string/time_range_one_week" 84 android:layout_width="wrap_content" 85 android:layout_height="wrap_content" 86 android:minHeight="?android:attr/listPreferredItemHeight" 87 android:paddingStart="?android:attr/listPreferredItemPaddingStart" 88 android:paddingEnd="0dp" 89 android:textAppearance="?attr/textAppearanceSummary" 90 android:textColor="?android:attr/textColorPrimary"/> 91 92 <RadioButton 93 android:id="@+id/radio_button_one_month" 94 android:text="@string/time_range_one_month" 95 android:layout_width="wrap_content" 96 android:layout_height="wrap_content" 97 android:minHeight="?android:attr/listPreferredItemHeight" 98 android:paddingStart="?android:attr/listPreferredItemPaddingStart" 99 android:paddingEnd="0dp" 100 android:textAppearance="?attr/textAppearanceSummary" 101 android:textColor="?android:attr/textColorPrimary"/> 102 103 <RadioButton 104 android:id="@+id/radio_button_all" 105 android:text="@string/time_range_all" 106 android:layout_width="wrap_content" 107 android:layout_height="wrap_content" 108 android:minHeight="?android:attr/listPreferredItemHeight" 109 android:paddingStart="?android:attr/listPreferredItemPaddingStart" 110 android:paddingEnd="0dp" 111 android:textAppearance="?attr/textAppearanceSummary" 112 android:textColor="?android:attr/textColorPrimary"/> 113 </RadioGroup> 114 </LinearLayout> 115</ScrollView> 116