| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2012 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <com.android.deskclock.CircleButtonsLinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| android:id="@+id/stopwatch_circle" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:orientation="vertical" |
| android:paddingTop="?android:attr/actionBarSize" > |
| |
| <FrameLayout |
| android:layout_width="match_parent" |
| android:layout_height="0dip" |
| android:layout_marginLeft="@dimen/circle_margin" |
| android:layout_marginStart="@dimen/circle_margin" |
| android:layout_marginRight="@dimen/circle_margin" |
| android:layout_marginEnd="@dimen/circle_margin" |
| android:layout_weight="5" > |
| |
| <com.android.deskclock.timer.CountingTimerView |
| android:id="@+id/stopwatch_time_text" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:layout_gravity="center"/> |
| <com.android.deskclock.CircleTimerView |
| android:id="@+id/stopwatch_time" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:background="@null" /> |
| |
| <ImageButton |
| android:id="@+id/stopwatch_left_button" |
| style="@style/button" |
| android:layout_width="56dip" |
| android:layout_height="56dip" |
| android:layout_gravity="bottom|start" |
| android:background="@null" |
| android:src="@drawable/ic_lap" /> |
| |
| <TextView |
| android:id="@+id/stopwatch_stop" |
| style="@style/bold_button" |
| android:layout_height="wrap_content" |
| android:layout_width="wrap_content" |
| android:layout_gravity="bottom|center_horizontal" |
| android:gravity="center" |
| android:layout_marginBottom="0dip" |
| android:contentDescription="@string/timer_stop" |
| android:paddingLeft="10dip" |
| android:paddingStart="10dip" |
| android:paddingRight="10dip" |
| android:paddingEnd="10dip" |
| android:paddingBottom="5dip" |
| android:paddingTop="5dip" |
| android:textColor="@color/clock_white" |
| android:text="@string/timer_stop" |
| android:focusable="true" /> |
| |
| <ImageButton |
| android:id="@+id/stopwatch_share_button" |
| style="@style/button" |
| android:layout_width="56dip" |
| android:layout_height="56dip" |
| android:layout_gravity="bottom|end" |
| android:contentDescription="@string/sw_share_button" |
| android:background="@null" |
| android:src="@drawable/ic_share" /> |
| </FrameLayout> |
| |
| <ListView |
| android:id="@+id/laps_list" |
| android:layout_weight="2" |
| android:layout_width="match_parent" |
| android:layout_height="0dip" /> |
| </com.android.deskclock.CircleButtonsLinearLayout> |