1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2015 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:layout_width="match_parent" 20 android:layout_height="wrap_content" 21 android:gravity="center_horizontal|top" 22 android:orientation="vertical" 23 android:paddingEnd="@dimen/alarm_side_padding" 24 android:paddingStart="@dimen/alarm_side_padding"> 25 26 <include layout="@layout/alarm_time_summary" /> 27 28 <FrameLayout 29 android:layout_width="match_parent" 30 android:layout_height="wrap_content"> 31 32 <LinearLayout 33 android:layout_width="match_parent" 34 android:layout_height="wrap_content" 35 android:layout_gravity="bottom" 36 android:layout_marginBottom="@dimen/collapse_expand_height" 37 android:orientation="vertical"> 38 39 <CheckBox 40 android:id="@+id/repeat_onoff" 41 android:layout_width="wrap_content" 42 android:layout_height="@dimen/touch_target_min_size" 43 android:layout_gravity="center_vertical|start" 44 android:paddingStart="@dimen/alarm_side_padding" 45 android:text="@string/alarm_repeat" 46 android:textColor="@color/clock_white" 47 android:textSize="@dimen/alarm_text_font_size" /> 48 49 <!-- Day buttons are put here programmatically --> 50 <LinearLayout 51 android:id="@+id/repeat_days" 52 android:layout_width="match_parent" 53 android:layout_height="@dimen/touch_target_min_size" 54 android:layout_gravity="top" 55 android:orientation="horizontal" 56 android:visibility="gone" /> 57 58 <LinearLayout 59 android:layout_width="match_parent" 60 android:layout_height="wrap_content" 61 android:gravity="center_vertical" 62 android:orientation="horizontal"> 63 64 <TextView 65 android:id="@+id/choose_ringtone" 66 android:layout_width="0dip" 67 android:layout_height="@dimen/touch_target_min_size" 68 android:layout_weight="1" 69 android:background="?android:attr/selectableItemBackground" 70 android:clickable="true" 71 android:drawablePadding="@dimen/alarm_horizontal_padding" 72 android:drawableStart="@drawable/ic_ringtone" 73 android:ellipsize="marquee" 74 android:gravity="center_vertical" 75 android:marqueeRepeatLimit="marquee_forever" 76 android:paddingStart="@dimen/icon_margin" 77 android:scrollHorizontally="true" 78 android:singleLine="true" 79 android:textAlignment="viewStart" 80 android:textColor="@color/clock_white" 81 android:textSize="@dimen/alarm_text_font_size" /> 82 83 <CheckBox 84 android:id="@+id/vibrate_onoff" 85 android:layout_width="wrap_content" 86 android:layout_height="@dimen/touch_target_min_size" 87 android:layout_alignParentEnd="true" 88 android:layout_centerVertical="true" 89 android:includeFontPadding="false" 90 android:paddingStart="@dimen/alarm_horizontal_padding" 91 android:text="@string/alarm_vibrate" 92 android:textColor="@color/white" 93 android:textSize="@dimen/alarm_text_font_size" /> 94 95 </LinearLayout> 96 97 <TextView 98 android:id="@+id/edit_label" 99 android:layout_width="match_parent" 100 android:layout_height="wrap_content" 101 android:ellipsize="end" 102 android:hint="@string/label" 103 android:paddingBottom="12dp" 104 android:paddingEnd="@dimen/alarm_side_padding" 105 android:paddingStart="44dp" 106 android:paddingTop="12dp" 107 android:singleLine="true" 108 android:textColor="@color/white" 109 android:textSize="@dimen/alarm_text_font_size" /> 110 111 <View 112 android:layout_width="wrap_content" 113 android:layout_height="@dimen/hairline_height" 114 android:layout_marginEnd="@dimen/hairline_side_padding" 115 android:layout_marginStart="@dimen/hairline_side_padding" 116 android:background="@color/hairline" /> 117 118 <include 119 android:id="@+id/preemptive_dismiss_container" 120 layout="@layout/preemptive_dismiss" /> 121 122 </LinearLayout> 123 124 <FrameLayout 125 android:id="@+id/collapse_expand" 126 android:layout_width="match_parent" 127 android:layout_height="wrap_content" 128 android:layout_gravity="bottom|start"> 129 130 <Button 131 android:id="@+id/delete" 132 android:layout_width="@dimen/touch_target_min_size" 133 android:layout_height="@dimen/tall_row_height" 134 android:layout_gravity="center_vertical|start" 135 android:layout_marginTop="@dimen/alarm_clock_vertical_margin" 136 android:layout_marginBottom="@dimen/alarm_clock_vertical_margin" 137 android:background="?attr/selectableItemBackground" 138 android:contentDescription="@string/delete_alarm" 139 android:drawableStart="@drawable/ic_delete_small" 140 android:drawablePadding="@dimen/alarm_horizontal_padding" 141 android:gravity="start|center_vertical" 142 android:scaleType="fitStart" /> 143 144 <ImageButton 145 android:id="@+id/arrow" 146 android:layout_width="@dimen/touch_target_min_size" 147 android:layout_height="@dimen/touch_target_min_size" 148 android:layout_gravity="center_vertical|end" 149 android:contentDescription="@string/collapse_alarm" 150 android:rotation="@integer/chevron_rotate_180" 151 android:scaleType="center" 152 android:src="@drawable/ic_expand_down" /> 153 154 </FrameLayout> 155 156 </FrameLayout> 157 158 </LinearLayout> 159