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 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:id="@+id/clock_background" 19 android:layout_width="match_parent" 20 android:background="@drawable/blackish_transition" 21 android:layout_height="match_parent" > 22 <FrameLayout 23 android:id="@+id/clock_foreground" 24 android:layout_width="match_parent" 25 android:layout_height="match_parent" 26 android:background="@drawable/blackish_transition" > 27 28 <LinearLayout 29 android:id="@+id/desk_clock" 30 android:layout_width="match_parent" 31 android:layout_height="match_parent" 32 android:orientation="vertical" 33 > 34 <ListView 35 android:id="@+id/cities" 36 android:clickable="false" 37 android:layout_width="match_parent" 38 android:layout_height="0dip" 39 android:layout_weight="1"/> 40 <FrameLayout 41 android:id="@+id/clock_footer" 42 android:layout_marginTop="@dimen/button_footer_height_neg" 43 android:background="@drawable/footer_bg" 44 android:layout_width="match_parent" 45 android:layout_height="wrap_content"> 46 <View 47 android:layout_width="match_parent" 48 android:layout_height="1dip" 49 android:background="#28ffffff" /> 50 <LinearLayout 51 android:id="@+id/clock_buttons" 52 android:gravity="bottom" 53 android:layout_width="match_parent" 54 android:layout_height="@dimen/button_footer_height" > 55 <ImageButton 56 android:id="@+id/alarms_button" 57 android:contentDescription="@string/button_alarms" 58 android:onClick="clockButtonsOnClick" 59 android:layout_width="64dip" 60 style="@style/button" 61 android:layout_gravity="start" 62 android:src="@drawable/ic_alarm" 63 android:background="@drawable/item_background" 64 android:layout_height="match_parent" /> 65 <Space 66 android:layout_height="match_parent" 67 android:layout_width="0dip" 68 android:layout_weight="1"/> 69 <ImageButton 70 android:id="@+id/cities_button" 71 android:contentDescription="@string/button_cities" 72 android:onClick="clockButtonsOnClick" 73 android:layout_width="64dip" 74 android:src="@drawable/ic_location" 75 style="@style/button" 76 android:layout_gravity="center" 77 android:background="@drawable/item_background" 78 android:layout_height="match_parent" /> 79 <Space 80 android:layout_height="match_parent" 81 android:layout_width="0dip" 82 android:layout_weight="1"/> 83 <ImageButton 84 android:id="@+id/menu_button" 85 android:contentDescription="@string/button_menu" 86 style="?android:attr/actionOverflowButtonStyle" 87 android:background="@drawable/item_background" 88 android:onClick="clockButtonsOnClick" 89 android:layout_gravity="end" 90 android:layout_width="64dip" 91 android:layout_height="match_parent" /> 92 </LinearLayout> 93 </FrameLayout> 94 </LinearLayout> 95 </FrameLayout> 96 </FrameLayout> 97