| <?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" |
| 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"> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:orientation="vertical"> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/fab_height" |
| android:orientation="horizontal"> |
| |
| <Space |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_weight="2" /> |
| |
| <FrameLayout |
| android:layout_width="0dp" |
| android:layout_height="match_parent" |
| android:layout_weight="3"> |
| |
| <Button |
| android:id="@+id/timer_label" |
| style="?attr/borderlessButtonStyle" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center" |
| android:clickable="false" |
| android:ellipsize="end" |
| android:gravity="center" |
| android:hint="@string/label" |
| android:maxLines="1" |
| android:minHeight="@dimen/touch_target_min_size" |
| android:minWidth="@dimen/touch_target_min_size" |
| android:textAppearance="@style/SecondaryLabelTextAppearance" /> |
| |
| </FrameLayout> |
| |
| <Space |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_weight="2" /> |
| |
| </LinearLayout> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="0dp" |
| android:layout_weight="1" |
| android:orientation="horizontal"> |
| |
| <FrameLayout |
| android:layout_width="0dp" |
| android:layout_height="match_parent" |
| android:layout_weight="1"> |
| |
| <Button |
| android:id="@+id/reset_add" |
| style="?attr/borderlessButtonStyle" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center" |
| android:contentDescription="@string/timer_plus_one" |
| android:gravity="center" |
| android:scaleType="centerInside" /> |
| |
| </FrameLayout> |
| |
| <FrameLayout |
| android:layout_width="0dp" |
| android:layout_height="match_parent" |
| android:layout_weight="3"> |
| |
| <com.android.deskclock.widget.AutoSizingTextView |
| android:id="@+id/timer_time_text" |
| style="@style/display_time" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center" |
| android:gravity="center" |
| android:includeFontPadding="false" |
| android:paddingEnd="20dp" |
| android:paddingStart="20dp" |
| android:textSize="70sp" /> |
| |
| </FrameLayout> |
| |
| <Space |
| android:layout_width="0dp" |
| android:layout_height="match_parent" |
| android:layout_weight="1" /> |
| |
| |
| </LinearLayout> |
| |
| </LinearLayout> |
| |
| </FrameLayout> |
| |
| <Space |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/fab_height" /> |
| |
| </com.android.deskclock.timer.TimerItem> |