• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2014 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    android:layout_width="match_parent"
20    android:layout_height="wrap_content">
21
22    <LinearLayout
23        android:layout_width="0dp"
24        android:layout_height="wrap_content"
25        android:layout_weight="29"
26        android:orientation="vertical">
27
28        <TextClock
29            android:id="@+id/digital_clock"
30            style="@style/world_clock_time"
31            android:layout_width="match_parent"
32            android:layout_height="wrap_content"
33            android:gravity="center_horizontal"
34            android:ellipsize="end"
35            android:singleLine="true"
36            android:includeFontPadding="false" />
37
38        <com.android.deskclock.AnalogClock
39            android:id="@+id/analog_clock"
40            android:layout_width="@dimen/world_clock_analog_size"
41            android:layout_height="@dimen/world_clock_analog_size"
42            android:layout_gravity="center_horizontal"
43            android:layout_marginBottom="@dimen/bottom_text_spacing_analog_small" />
44
45        <include
46            layout="@layout/world_clock_city_container"
47            android:layout_width="wrap_content"
48            android:layout_height="0dp"
49            android:layout_gravity="center_horizontal"
50            android:layout_weight="1" />
51
52    </LinearLayout>
53
54    <!-- Right gutter. -->
55    <Space
56        android:layout_width="0dp"
57        android:layout_height="match_parent"
58        android:layout_weight="@integer/gutter_width_percent" />
59
60</LinearLayout>
61