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<LinearLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent"> 21 22 <!-- Left gutter. --> 23 <Space 24 android:layout_width="0dp" 25 android:layout_height="match_parent" 26 android:layout_weight="@integer/gutter_width_percent" /> 27 28 <!-- Clock: 62% of total width (4% given to right gutter). --> 29 <LinearLayout 30 android:layout_width="0dp" 31 android:layout_height="match_parent" 32 android:layout_weight="62" 33 android:gravity="center" 34 android:paddingBottom="@dimen/fab_height"> 35 36 <include 37 android:id="@+id/main_clock_left_pane" 38 layout="@layout/main_clock_frame" 39 android:layout_width="0dp" 40 android:layout_height="wrap_content" 41 android:layout_weight="29" /> 42 43 <!-- Right gutter. --> 44 <Space 45 android:layout_width="0dp" 46 android:layout_height="match_parent" 47 android:layout_weight="2" /> 48 49 50 </LinearLayout> 51 52 <!-- World Clock List: 33% of total width. Right gutter is applied in world_clock_item. --> 53 <androidx.recyclerview.widget.RecyclerView 54 android:id="@+id/cities" 55 android:layout_width="0dp" 56 android:layout_height="wrap_content" 57 android:layout_gravity="center" 58 android:layout_weight="33" 59 android:clickable="false" 60 android:clipToPadding="false" 61 android:paddingBottom="@dimen/fab_height" 62 android:paddingTop="16dp" 63 android:scrollbarStyle="outsideOverlay" 64 android:scrollbars="vertical" /> 65 66</LinearLayout>