blob: 3be4cfe9996f4c1f042fb0b63061830551a71513 [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.
-->
<!-- This TimerItem includes the circle because ample space exists. -->
<com.android.deskclock.timer.TimerItem
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<android.support.percent.PercentFrameLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_gravity="center">
<com.android.deskclock.TimerCircleFrameLayout
app:layout_aspectRatio="100%"
app:layout_widthPercent="@fraction/timer_circle_width_percent"
app:layout_heightPercent="@fraction/timer_circle_height_percent"
android:layout_gravity="center">
<com.android.deskclock.CircleButtonsLayout
android:id="@+id/timer_circle"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.android.deskclock.timer.TimerCircleView
android:id="@+id/timer_time"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<com.android.deskclock.timer.CountingTimerView
android:id="@+id/timer_time_text"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<Button
android:id="@+id/timer_label"
style="?android:attr/borderlessButtonStyle"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_gravity="top|center_horizontal"
android:clickable="false"
android:ellipsize="end"
android:gravity="center"
android:hint="@string/label"
android:maxLines="1"
android:textAppearance="@style/SecondaryLabelTextAppearance" />
<ImageButton
android:id="@+id/reset_add"
android:layout_width="@dimen/fab_button_size"
android:layout_height="@dimen/fab_button_size"
android:layout_gravity="bottom|center_horizontal"
android:contentDescription="@string/timer_plus_one"
android:gravity="center"
android:padding="@dimen/fab_button_padding"
android:scaleType="centerInside"
app:srcCompat="@drawable/ic_plusone" />
</com.android.deskclock.CircleButtonsLayout>
</com.android.deskclock.TimerCircleFrameLayout>
</android.support.percent.PercentFrameLayout>
<Space
android:layout_width="match_parent"
android:layout_height="@dimen/fab_height" />
</com.android.deskclock.timer.TimerItem>