1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2013 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<!-- Use this clock_fragment for landscape, which has main clock frame next to cities,
18     with a spacing ratio dependent on the number of clocks per row (phone has 1, tablet has 2). -->
19<LinearLayout
20    xmlns:android="http://schemas.android.com/apk/res/android"
21    android:layout_width="match_parent"
22    android:layout_height="match_parent"
23    android:baselineAligned="false"
24    android:orientation="horizontal"
25    android:paddingEnd="@dimen/clock_side_padding"
26    android:paddingStart="@dimen/clock_side_padding">
27
28    <LinearLayout
29        android:layout_width="0dp"
30        android:layout_height="match_parent"
31        android:layout_marginBottom="@dimen/main_clock_bottom_margin"
32        android:layout_weight="2"
33        android:gravity="center">
34
35        <include
36            android:id="@+id/main_clock_left_pane"
37            layout="@layout/main_clock_frame"
38            android:layout_width="match_parent"
39            android:layout_height="wrap_content"/>
40
41    </LinearLayout>
42
43    <ListView
44        android:id="@+id/cities"
45        android:layout_width="0dp"
46        android:layout_height="wrap_content"
47        android:layout_gravity="center"
48        android:layout_weight="@integer/world_clocks_per_row"
49        android:clickable="false"/>
50
51</LinearLayout>