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<FrameLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" > 21 <!-- This layout sits as an include in world_clock_list_item, but the LinearLayout needs 22 to have wrap_content so the separator view can have its width set to the width of the 23 clock, which means we need the extra parent FrameLayout. --> 24 <LinearLayout 25 android:layout_width="wrap_content" 26 android:layout_height="match_parent" 27 android:paddingTop="@dimen/medium_space_top" 28 android:orientation="vertical" 29 android:layout_gravity="center_horizontal" 30 android:gravity="center_horizontal" > 31 32 <FrameLayout 33 android:layout_width="wrap_content" 34 android:layout_height="match_parent"> 35 36 <TextClock 37 android:id="@+id/digital_clock" 38 style="@style/medium_light" 39 android:layout_width="wrap_content" 40 android:layout_height="wrap_content" 41 android:textColor="@color/clock_white" 42 android:format12Hour="@string/world_clock_12_hours_format" 43 android:format24Hour="@string/clock_24_hours_format" 44 android:baselineAligned="true" 45 android:layout_gravity="center" 46 android:gravity="center" /> 47 48 <com.android.deskclock.AnalogClock 49 android:id="@+id/analog_clock" 50 android:layout_width="@dimen/world_clock_analog_size" 51 android:layout_height="@dimen/world_clock_analog_size" 52 android:layout_marginBottom="@dimen/bottom_text_spacing_analog_small" 53 android:layout_gravity="center_horizontal" 54 android:dial="@drawable/clock_analog_dial_mipmap" 55 android:hand_hour="@drawable/clock_analog_hour_mipmap" 56 android:hand_minute="@drawable/clock_analog_minute_mipmap" 57 android:gravity="center" /> 58 59 </FrameLayout> 60 61 <com.android.deskclock.widget.EllipsizeLayout 62 android:id="@+id/city_name_layout" 63 android:layout_height="wrap_content" 64 android:layout_width="wrap_content" 65 android:layout_marginLeft="@dimen/label_margin_small" 66 android:layout_marginStart="@dimen/label_margin_small" 67 android:gravity="center" > 68 69 <include layout="@layout/world_clock_label"/> 70 71 </com.android.deskclock.widget.EllipsizeLayout> 72 73 </LinearLayout> 74 75</FrameLayout>