69 lines
No EOL
2.7 KiB
XML
69 lines
No EOL
2.7 KiB
XML
<?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.
|
|
-->
|
|
|
|
<com.android.deskclock.timer.TimerItem
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:gravity="center_vertical"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="@dimen/timer_list_padding_bottom">
|
|
|
|
<com.android.deskclock.CircleButtonsLayout
|
|
android:id="@+id/timer_circle"
|
|
android:layout_width="@dimen/circle_size"
|
|
android:layout_height="@dimen/circle_size"
|
|
android:layout_gravity="center"
|
|
android:padding="@dimen/timer_padding">
|
|
|
|
<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="56dp"
|
|
android:layout_gravity="top|center_horizontal"
|
|
android:clickable="false"
|
|
android:ellipsize="end"
|
|
android:gravity="center"
|
|
android:hint="@string/label"
|
|
android:singleLine="true"
|
|
android:src="@drawable/ic_label"
|
|
android:textAppearance="@style/SecondaryLabelTextAppearance"/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/reset_add"
|
|
android:layout_width="50dp"
|
|
android:layout_height="50dp"
|
|
android:layout_gravity="bottom|center_horizontal"
|
|
android:contentDescription="@string/timer_plus_one"
|
|
android:gravity="center"
|
|
android:scaleType="center"
|
|
android:src="@drawable/ic_plusone"/>
|
|
|
|
</com.android.deskclock.CircleButtonsLayout>
|
|
|
|
</com.android.deskclock.timer.TimerItem> |