Home | History | Annotate | Download | only in layout
      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 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     17     android:layout_width="match_parent"
     18     android:layout_height="match_parent"
     19     android:orientation="vertical"
     20     android:paddingTop="?android:attr/actionBarSize" >
     21 
     22     <Space
     23             android:id="@+id/start_space"
     24             android:visibility="gone"
     25             android:layout_weight="1"
     26             android:layout_width="match_parent"
     27             android:layout_height="0dip"/>
     28 
     29     <com.android.deskclock.CircleButtonsLayout
     30         android:id="@+id/stopwatch_circle"
     31         android:layout_width="match_parent"
     32         android:layout_height="0dip"
     33         android:layout_marginLeft="@dimen/circle_margin"
     34         android:layout_marginStart="@dimen/circle_margin"
     35         android:layout_marginRight="@dimen/circle_margin"
     36         android:layout_marginEnd="@dimen/circle_margin"
     37         android:layout_weight="5" >
     38 
     39         <com.android.deskclock.timer.CountingTimerView
     40             android:id="@+id/stopwatch_time_text"
     41             android:layout_width="match_parent"
     42             android:layout_height="match_parent" />
     43         <com.android.deskclock.CircleTimerView
     44             android:id="@+id/stopwatch_time"
     45             android:layout_width="match_parent"
     46             android:layout_height="match_parent"
     47             android:background="@null" />
     48 
     49         <ImageButton
     50             android:id="@+id/stopwatch_left_button"
     51             style="@style/button"
     52             android:layout_width="56dip"
     53             android:layout_height="56dip"
     54             android:layout_gravity="bottom|start"
     55             android:background="@null"
     56             android:contentDescription="@string/sw_lap_button"
     57             android:src="@drawable/ic_lap" />
     58 
     59         <TextView
     60             android:id="@+id/stopwatch_stop"
     61             style="@style/bold_button"
     62             android:layout_height="wrap_content"
     63             android:layout_width="wrap_content"
     64             android:layout_gravity="bottom|center_horizontal"
     65             android:gravity="center"
     66             android:layout_marginBottom="0dip"
     67             android:contentDescription="@string/timer_stop"
     68             android:paddingLeft="10dip"
     69             android:paddingStart="10dip"
     70             android:paddingRight="10dip"
     71             android:paddingEnd="10dip"
     72             android:paddingBottom="5dip"
     73             android:paddingTop="5dip"
     74             android:textColor="@color/clock_white"
     75             android:text="@string/timer_stop"
     76             android:focusable="true" />
     77 
     78         <ImageButton
     79             android:id="@+id/stopwatch_share_button"
     80             style="@style/button"
     81             android:layout_width="56dip"
     82             android:layout_height="56dip"
     83             android:layout_gravity="bottom|end"
     84             android:contentDescription="@string/sw_share_button"
     85             android:background="@null"
     86             android:src="@drawable/ic_share" />
     87     </com.android.deskclock.CircleButtonsLayout>
     88 
     89     <Space
     90             android:id="@+id/end_space"
     91             android:visibility="gone"
     92             android:layout_weight="1"
     93             android:layout_width="match_parent"
     94             android:layout_height="0dip"/>
     95 
     96     <ListView
     97         android:id="@+id/laps_list"
     98         android:layout_weight="2"
     99         android:layout_width="match_parent"
    100         android:layout_height="0dip" />
    101 </LinearLayout>
    102