• 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<LinearLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:tools="http://schemas.android.com/tools"
20    android:layout_width="match_parent"
21    android:layout_height="wrap_content"
22    android:layout_marginBottom="@dimen/alarm_label_padding"
23    android:gravity="top"
24    android:orientation="vertical">
25
26    <LinearLayout
27        android:orientation="horizontal"
28        android:layout_width="match_parent"
29        android:layout_height="match_parent">
30
31        <com.android.deskclock.widget.TextTime
32            android:id="@+id/digital_clock"
33            android:layout_marginTop="@dimen/alarm_clock_vertical_margin"
34            android:layout_width="wrap_content"
35            android:layout_height="wrap_content"
36            android:textColor="@color/black"
37            android:textSize="@dimen/label_font_size"
38            android:textStyle="bold"/>
39
40        <TextView
41            android:id="@+id/daysOfWeek"
42            tools:text="M, T, W"
43            android:layout_width="wrap_content"
44            android:layout_height="wrap_content"
45            android:ellipsize="end"
46            android:singleLine="true"
47            android:textSize="@dimen/label_font_size"
48            android:textColor="@color/black"
49            android:layout_marginTop="@dimen/alarm_clock_vertical_margin"
50            android:layout_marginStart="@dimen/alarm_clock_vertical_margin" />
51
52    </LinearLayout>
53
54    <com.android.deskclock.widget.EllipsizeLayout
55        android:layout_marginTop="@dimen/label_margin_big"
56        android:layout_width="match_parent"
57        android:layout_height="match_parent"
58        android:gravity="bottom"
59        android:layout_gravity="end"
60        android:orientation="vertical"
61        android:layout_marginBottom="@dimen/alarm_clock_vertical_margin">
62
63        <TextView
64            android:id="@+id/label"
65            tools:text="Pick up kids"
66            android:layout_width="wrap_content"
67            android:layout_height="wrap_content"
68            android:ellipsize="none"
69            android:singleLine="true"
70            android:textSize="@dimen/label_font_size"
71            android:textColor="@color/black_54p" />
72    </com.android.deskclock.widget.EllipsizeLayout>
73
74</LinearLayout>