summaryrefslogtreecommitdiffstats
path: root/res/layout/timer_list_item.xml
blob: f5ac851016bbe291b8f8df8a0a26848be0ee5e80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2012 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.
-->

<!-- timer item in the list of active timers -->
<com.android.deskclock.CircleButtonsLinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/timer_circle"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:gravity="center"
    android:orientation="vertical">

    <FrameLayout
        android:id="@+id/timer_frame"
        android:layout_width="match_parent"
        android:layout_height="@dimen/timer_circle_diameter"
        android:layout_marginLeft="@dimen/timer_circle_margin"
        android:layout_marginRight="@dimen/timer_circle_margin">

        <com.android.deskclock.CircleTimerView
            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"
            android:layout_gravity="center"/>

         <FrameLayout
             android:id="@+id/timer_label"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_marginTop="0dip"
             android:layout_gravity="top|center_horizontal"
             android:enabled="true"
             android:clickable="true"
             android:contentDescription="@string/label"
             >
             <TextView
                android:id="@+id/timer_label_text"
                android:layout_height="56dip"
                android:layout_width="wrap_content"
                android:background="@null"
                android:layout_gravity="center_horizontal"
                android:gravity="center"
                style="@style/timer_label"
                android:enabled="false"
                android:clickable="false"
                android:singleLine="true"
                android:ellipsize="end"
                android:text="@string/label_unlabeled"/>
             <ImageButton
                android:id="@+id/timer_label_icon"
                android:layout_height="56dip"
                android:layout_width="56dip"
                android:background="@null"
                android:layout_gravity="center_horizontal"
                android:enabled="false"
                android:clickable="false"
                style="@style/button"
                android:src="@drawable/ic_label" />
         </FrameLayout>
         <ImageButton
            android:id="@+id/timer_plus_one"
            android:src="@drawable/ic_plusone"
            android:background="@null"
            android:layout_width="56dip"
            android:layout_gravity="bottom|left"
            style="@style/button"
            android:contentDescription="@string/timer_plus_one"
            android:layout_height="56dip" />

        <TextView
            android:id="@+id/timer_stop"
            android:layout_gravity="bottom|center_horizontal"
            android:gravity="center"
            android:layout_marginBottom="0dip"
            android:paddingLeft="10dip"
            android:paddingRight="10dip"
            android:paddingBottom="5dip"
            android:paddingTop="5dip"
            android:text="@string/timer_stop"
            android:layout_width="wrap_content"
            style="@style/bold_button"
            android:contentDescription="@string/timer_stop"
            android:layout_height="wrap_content" />

        <ImageButton
            android:id="@+id/timer_delete"
            android:src="@drawable/ic_delete"
            android:background="@null"
            android:layout_gravity="bottom|right"
            android:layout_width="56dip"
            android:contentDescription="@string/timer_delete"
            style="@style/button"
            android:layout_height="56dip" />
    </FrameLayout>

</com.android.deskclock.CircleButtonsLinearLayout>