• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2015 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<!-- This TimerItem discards the circle because space is limited. -->
18<com.android.deskclock.timer.TimerItem
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    android:layout_width="match_parent"
21    android:layout_height="match_parent"
22    android:orientation="vertical">
23
24    <FrameLayout
25        android:layout_width="match_parent"
26        android:layout_height="0dp"
27        android:layout_weight="1">
28
29        <LinearLayout
30            android:layout_width="match_parent"
31            android:layout_height="match_parent"
32            android:orientation="vertical">
33
34            <LinearLayout
35                android:layout_width="match_parent"
36                android:layout_height="@dimen/fab_height"
37                android:orientation="horizontal">
38
39                <Space
40                    android:layout_width="0dp"
41                    android:layout_height="wrap_content"
42                    android:layout_weight="2" />
43
44                <FrameLayout
45                    android:layout_width="0dp"
46                    android:layout_height="match_parent"
47                    android:layout_weight="3">
48
49                    <Button
50                        android:id="@+id/timer_label"
51                        style="?attr/borderlessButtonStyle"
52                        android:layout_width="wrap_content"
53                        android:layout_height="wrap_content"
54                        android:layout_gravity="center"
55                        android:clickable="false"
56                        android:ellipsize="end"
57                        android:gravity="center"
58                        android:hint="@string/label"
59                        android:maxLines="1"
60                        android:minHeight="@dimen/touch_target_min_size"
61                        android:minWidth="@dimen/touch_target_min_size"
62                        android:textAppearance="@style/SecondaryLabelTextAppearance" />
63
64                </FrameLayout>
65
66                <Space
67                    android:layout_width="0dp"
68                    android:layout_height="wrap_content"
69                    android:layout_weight="2" />
70
71            </LinearLayout>
72
73            <LinearLayout
74                android:layout_width="match_parent"
75                android:layout_height="0dp"
76                android:layout_weight="1"
77                android:orientation="horizontal">
78
79                <FrameLayout
80                    android:layout_width="0dp"
81                    android:layout_height="match_parent"
82                    android:layout_weight="1">
83
84                    <Button
85                        android:id="@+id/reset_add"
86                        style="?attr/borderlessButtonStyle"
87                        android:layout_width="wrap_content"
88                        android:layout_height="wrap_content"
89                        android:layout_gravity="center"
90                        android:contentDescription="@string/timer_plus_one"
91                        android:gravity="center"
92                        android:scaleType="centerInside" />
93
94                </FrameLayout>
95
96                <FrameLayout
97                    android:layout_width="0dp"
98                    android:layout_height="match_parent"
99                    android:layout_weight="3">
100
101                    <com.android.deskclock.widget.AutoSizingTextView
102                        android:id="@+id/timer_time_text"
103                        style="@style/display_time"
104                        android:layout_width="match_parent"
105                        android:layout_height="wrap_content"
106                        android:layout_gravity="center"
107                        android:gravity="center"
108                        android:includeFontPadding="false"
109                        android:paddingEnd="20dp"
110                        android:paddingStart="20dp"
111                        android:textSize="70sp" />
112
113                </FrameLayout>
114
115                <Space
116                    android:layout_width="0dp"
117                    android:layout_height="match_parent"
118                    android:layout_weight="1" />
119
120
121            </LinearLayout>
122
123        </LinearLayout>
124
125    </FrameLayout>
126
127    <Space
128        android:layout_width="match_parent"
129        android:layout_height="@dimen/fab_height" />
130
131</com.android.deskclock.timer.TimerItem>