1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2012 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 android:orientation="horizontal"> 22 23 <!-- Left gutter. --> 24 <Space 25 android:layout_width="0dp" 26 android:layout_height="match_parent" 27 android:layout_weight="@integer/gutter_width_percent" /> 28 29 <LinearLayout 30 android:layout_width="0dp" 31 android:layout_height="wrap_content" 32 android:layout_weight="@integer/guttered_content_width_percent" 33 android:gravity="center_vertical"> 34 35 <include 36 layout="@layout/world_clock_city_container" 37 android:layout_width="0dp" 38 android:layout_height="wrap_content" 39 android:layout_weight="1" /> 40 41 <TextClock 42 android:id="@+id/digital_clock" 43 android:layout_width="wrap_content" 44 android:layout_height="wrap_content" 45 android:paddingStart="24dp" 46 android:layout_gravity="end" 47 android:singleLine="true" 48 android:textAppearance="@style/world_clock_time"/> 49 50 <com.android.deskclock.AnalogClock 51 android:id="@+id/analog_clock" 52 android:layout_width="@dimen/world_clock_analog_size" 53 android:layout_height="@dimen/world_clock_analog_size" 54 android:paddingStart="24dp" 55 android:layout_gravity="end" 56 android:layout_marginBottom="@dimen/bottom_text_spacing_analog_small" /> 57 58 </LinearLayout> 59 60 <!-- Right gutter. --> 61 <Space 62 android:layout_width="0dp" 63 android:layout_height="match_parent" 64 android:layout_weight="@integer/gutter_width_percent" /> 65 66</LinearLayout>