blob: f115d9e7d86c4a06c61f1758094d9cede2cd74e0 [file] [log] [blame]
<?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/edit_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:drawableStartCompat="@drawable/ic_label"
app:drawableTint="?colorControlNormal"
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/edit_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/collapse_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_up" />
<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>
<include
android:id="@+id/repeat_days"
layout="@layout/days_of_week"
android:layout_width="0.0dip"
android:layout_height="@dimen/touch_target_min_size"
android:layout_marginHorizontal="4.0dip"
android:layout_marginLeft="4.0dip"
android:layout_marginRight="4.0dip"
android:focusable="false"
android:visibility="visible"
app:layout_constraintEnd_toStartOf="@id/end_guide_very_thin"
app:layout_constraintStart_toEndOf="@id/start_guide_very_thin"
app:layout_constraintTop_toBottomOf="@id/ellipse_layout" />
<TextView
android:id="@+id/choose_ringtone"
android:layout_width="0.0dip"
android:layout_height="@dimen/touch_target_min_size"
android:background="?selectableItemBackground"
android:drawablePadding="@dimen/alarm_horizontal_padding"
android:ellipsize="marquee"
android:focusable="true"
android:gravity="start|center"
android:marqueeRepeatLimit="marquee_forever"
android:paddingStart="@dimen/icon_margin"
android:paddingEnd="@dimen/icon_margin"
android:scrollHorizontally="true"
android:singleLine="true"
android:textAlignment="viewStart"
android:textAppearance="@style/body"
app:drawableStartCompat="@drawable/ic_ringtone"
app:layout_constraintEnd_toStartOf="@id/end_guide_thin"
app:layout_constraintStart_toEndOf="@id/start_guide_thin"
app:layout_constraintTop_toBottomOf="@id/repeat_days"
tools:text="Standard (Hassium)" />
<CheckBox
android:id="@+id/vibrate_onoff"
android:layout_width="0.0dip"
android:layout_height="@dimen/touch_target_min_size"
android:background="?selectableItemBackground"
android:button="@null"
android:drawablePadding="@dimen/alarm_horizontal_padding"
android:focusable="true"
android:paddingStart="4.0dip"
android:paddingEnd="4.0dip"
android:text="@string/alarm_vibrate"
android:textAppearance="@style/body"
android:drawableStart="@drawable/ic_vibrate"
android:drawableEnd="@drawable/selector_checkbox_material"
app:layout_constraintEnd_toStartOf="@id/end_guide_thin"
app:layout_constraintStart_toEndOf="@id/start_guide_thin"
app:layout_constraintTop_toBottomOf="@id/choose_ringtone" />
<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/vibrate_onoff"
tools:text="Dismiss"
tools:visibility="visible" />
<Button
android:id="@+id/delete"
style="?borderlessButtonStyle"
android:layout_width="wrap_content"
android:layout_height="@dimen/touch_target_min_size"
android:layout_marginBottom="@dimen/alarm_clock_expanded_vertical_margin"
android:background="?selectableItemBackground"
android:drawableStart="@drawable/ic_delete_small"
android:drawablePadding="@dimen/alarm_horizontal_padding"
android:focusable="true"
android:gravity="start|center"
android:paddingStart="@dimen/icon_margin"
android:paddingEnd="@dimen/checkbox_start_padding"
android:text="@string/delete"
android:textAllCaps="false"
android:textAppearance="@style/body"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toEndOf="@id/start_guide_thin"
app:layout_constraintTop_toBottomOf="@id/preemptive_dismiss_button" />
</androidx.constraintlayout.widget.ConstraintLayout>