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 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:paddingTop="?android:attr/actionBarSize" > 23 <LinearLayout 24 android:layout_width="match_parent" 25 android:layout_height="wrap_content" 26 android:layout_gravity="center" 27 android:gravity="center" 28 android:weightSum="@integer/clocks_per_row" > 29 <include layout="@layout/main_clock_frame" 30 android:id="@+id/main_clock_left_pane" 31 android:layout_width="0dp" 32 android:layout_height="wrap_content" 33 android:layout_weight="2" 34 android:layout_marginLeft="20dp" 35 android:layout_marginRight="20dp" 36 android:layout_gravity="center" /> 37 <ListView 38 android:id="@+id/cities" 39 android:layout_width="0dp" 40 android:layout_height="wrap_content" 41 android:layout_weight="@integer/world_clocks_per_row" 42 android:clickable="false" 43 android:layout_marginRight="20dp" 44 android:layout_gravity="center" /> 45 </LinearLayout> 46 <ImageButton 47 android:id="@+id/cities_button" 48 android:contentDescription="@string/button_cities" 49 android:layout_width="@dimen/footer_button_size" 50 android:layout_height="@dimen/footer_button_size" 51 android:layout_marginTop="@dimen/footer_button_layout_margin" 52 android:layout_marginBottom="@dimen/footer_button_layout_margin" 53 android:layout_marginRight="@dimen/footer_button_layout_margin" 54 android:layout_marginEnd="@dimen/footer_button_layout_margin" 55 android:layout_marginLeft="@dimen/footer_button_layout_margin" 56 android:layout_marginStart="@dimen/footer_button_layout_margin" 57 android:layout_gravity="right|bottom" 58 android:src="@drawable/ic_globe" 59 style="@style/button" 60 android:onClick="clockButtonsOnClick" 61 android:background="@drawable/main_button_normal" /> 62 </FrameLayout> 63