blob: e003329518aa1ceeb5c50599a187be7abc342fa9 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2015 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 discards the circle because space is limited. -->
<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">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<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" />
<!-- Center the reset/add button on the third of the container above the delete button. -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<FrameLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1">
<ImageButton
android:id="@+id/reset_add"
android:layout_width="@dimen/fab_button_size"
android:layout_height="@dimen/fab_button_size"
android:layout_gravity="center"
android:contentDescription="@string/timer_plus_one"
android:gravity="center"
android:padding="@dimen/fab_button_padding"
android:scaleType="centerInside"
app:srcCompat="@drawable/ic_plusone" />
</FrameLayout>
<Space
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="2" />
</LinearLayout>
</FrameLayout>
<Space
android:layout_width="match_parent"
android:layout_height="@dimen/fab_height" />
</com.android.deskclock.timer.TimerItem>