| <?xml version="1.0" encoding="utf-8"?><!-- |
| Copyright (C) 2016 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <androidx.constraintlayout.widget.ConstraintLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| xmlns:tools="http://schemas.android.com/tools" |
| style="@style/MaterialCardViewStyle" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:background="@drawable/alarm_background" |
| android:importantForAccessibility="no"> |
| |
| <include layout="@layout/centered_guidelines" /> |
| |
| <TextView |
| android:id="@+id/label" |
| android:layout_width="0.0dip" |
| android:layout_height="@dimen/touch_target_min_size" |
| android:background="?selectableItemBackground" |
| android:drawablePadding="@dimen/alarm_horizontal_padding" |
| android:ellipsize="end" |
| android:focusable="true" |
| android:gravity="start|center" |
| android:hint="@string/add_label" |
| android:paddingStart="4.0dip" |
| android:paddingEnd="4.0dip" |
| android:singleLine="true" |
| android:textAlignment="viewStart" |
| android:textAppearance="@style/body" |
| app:layout_constraintEnd_toStartOf="@id/arrow" |
| app:layout_constraintStart_toEndOf="@id/start_guide_thin" |
| app:layout_constraintTop_toTopOf="parent" /> |
| |
| <include |
| layout="@layout/alarm_time_summary" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| app:layout_constraintEnd_toStartOf="@id/end_guide_thin" |
| app:layout_constraintHorizontal_bias="0" |
| app:layout_constraintStart_toEndOf="@id/start_guide_thin" |
| app:layout_constraintTop_toBottomOf="@id/label" /> |
| |
| <ImageButton |
| android:id="@+id/arrow" |
| android:layout_width="wrap_content" |
| android:layout_height="@dimen/touch_target_min_size" |
| android:background="?selectableItemBackgroundBorderless" |
| android:contentDescription="@string/expand_alarm" |
| android:focusable="true" |
| android:padding="@dimen/checkbox_start_padding" |
| android:scaleType="center" |
| app:layout_constraintEnd_toEndOf="@id/end_guide_extreme_thin" |
| app:layout_constraintTop_toTopOf="parent" |
| app:srcCompat="@drawable/ic_caret_down" /> |
| |
| <androidx.appcompat.widget.SwitchCompat |
| android:id="@+id/onoff" |
| style="@style/DeskClock.Switch" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginEnd="6.0dip" |
| android:focusable="true" |
| android:minWidth="@dimen/touch_target_min_size" |
| android:minHeight="@dimen/touch_target_min_size" |
| app:layout_constraintEnd_toStartOf="@id/end_guide_thin" |
| app:layout_constraintTop_toBottomOf="@id/digital_clock" /> |
| |
| <com.android.deskclock.widget.EllipsizeLayout |
| android:id="@+id/ellipse_layout" |
| android:layout_width="0.0dip" |
| android:layout_height="@dimen/touch_target_min_size" |
| android:background="@android:color/transparent" |
| android:focusable="false" |
| android:gravity="center_vertical" |
| app:layout_constraintBottom_toTopOf="@id/repeat_days" |
| app:layout_constraintEnd_toStartOf="@id/onoff" |
| app:layout_constraintStart_toEndOf="@id/start_guide_thin" |
| app:layout_constraintTop_toBottomOf="@id/digital_clock"> |
| |
| <TextView |
| android:id="@+id/days_of_week" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:ellipsize="none" |
| android:focusable="false" |
| android:maxLines="1" |
| android:paddingHorizontal="@dimen/icon_margin" |
| android:paddingLeft="@dimen/icon_margin" |
| android:paddingRight="@dimen/icon_margin" |
| android:textAppearance="@style/body" |
| android:visibility="visible" |
| tools:text="Mo.,Tue.,Wed." /> |
| </com.android.deskclock.widget.EllipsizeLayout> |
| |
| <Button |
| android:id="@+id/preemptive_dismiss_button" |
| style="?borderlessButtonStyle" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:drawablePadding="@dimen/alarm_horizontal_padding" |
| android:focusable="true" |
| android:gravity="center_vertical" |
| android:minHeight="@dimen/touch_target_min_size" |
| android:paddingStart="@dimen/icon_margin" |
| android:paddingEnd="0dp" |
| android:textAllCaps="false" |
| android:textAppearance="@style/body" |
| android:textColor="@color/accent_color" |
| android:visibility="gone" |
| app:layout_constraintStart_toEndOf="@id/start_guide_thin" |
| app:layout_constraintTop_toBottomOf="@id/ellipse_layout" |
| tools:text="Dismiss" |
| tools:visibility="visible" /> |
| </androidx.constraintlayout.widget.ConstraintLayout> |