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 <com.android.deskclock.CircleButtonsLinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 17 android:id="@+id/stopwatch_circle" 18 android:layout_width="match_parent" 19 android:layout_height="match_parent" 20 android:orientation="horizontal" 21 android:paddingTop="?android:attr/actionBarSize" > 22 23 <FrameLayout 24 android:layout_width="0dip" 25 android:layout_height="match_parent" 26 android:layout_marginLeft="@dimen/circle_margin" 27 android:layout_marginRight="@dimen/circle_margin" 28 android:layout_weight="1" > 29 30 <com.android.deskclock.timer.CountingTimerView 31 android:id="@+id/stopwatch_time_text" 32 android:layout_width="match_parent" 33 android:layout_height="match_parent" 34 android:layout_gravity="center" /> 35 36 <com.android.deskclock.CircleTimerView 37 android:id="@+id/stopwatch_time" 38 android:layout_width="match_parent" 39 android:layout_height="match_parent" 40 android:background="@null" /> 41 42 <ImageButton 43 android:id="@+id/stopwatch_left_button" 44 android:layout_gravity="bottom|left" 45 android:layout_width="56dip" 46 style="@style/button" 47 android:src="@drawable/ic_lap" 48 android:background="@null" 49 android:layout_height="56dip" /> 50 51 <TextView 52 android:id="@+id/stopwatch_stop" 53 android:layout_gravity="bottom|center_horizontal" 54 android:gravity="center" 55 android:layout_marginBottom="0dip" 56 android:paddingLeft="10dip" 57 android:paddingRight="10dip" 58 android:paddingBottom="5dip" 59 android:paddingTop="5dip" 60 android:text="@string/timer_stop" 61 android:layout_width="wrap_content" 62 style="@style/bold_button" 63 android:contentDescription="@string/timer_stop" 64 android:layout_height="wrap_content" 65 android:focusable="true" /> 66 67 <ImageButton 68 android:id="@+id/stopwatch_share_button" 69 android:background="@null" 70 android:layout_width="56dip" 71 android:src="@drawable/ic_share" 72 style="@style/button" 73 android:layout_gravity="bottom|right" 74 android:layout_height="56dip" 75 android:contentDescription="@string/sw_share_button" /> 76 </FrameLayout> 77 78 <ListView 79 android:id="@+id/laps_list" 80 android:layout_weight="1" 81 android:layout_marginLeft="@dimen/laps_margin" 82 android:layout_marginRight="@dimen/laps_margin" 83 android:layout_gravity="center" 84 android:layout_width="0dip" 85 android:layout_height="wrap_content" /> 86 </com.android.deskclock.CircleButtonsLinearLayout> 87