Home | History | Annotate | Download | only in layout-land
      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_marginStart="@dimen/circle_margin"
     28         android:layout_marginRight="@dimen/circle_margin"
     29         android:layout_marginEnd="@dimen/circle_margin"
     30         android:layout_weight="0.95" >
     31 
     32         <com.android.deskclock.timer.CountingTimerView
     33             android:id="@+id/stopwatch_time_text"
     34             android:layout_width="match_parent"
     35             android:layout_height="match_parent"
     36             android:layout_gravity="center" />
     37 
     38         <com.android.deskclock.CircleTimerView
     39             android:id="@+id/stopwatch_time"
     40             android:layout_width="match_parent"
     41             android:layout_height="match_parent"
     42             android:background="@null" />
     43 
     44         <ImageButton
     45             android:id="@+id/stopwatch_left_button"
     46             android:layout_gravity="bottom|start"
     47             android:layout_width="56dip"
     48             style="@style/button"
     49             android:src="@drawable/ic_lap"
     50             android:background="@null"
     51             android:layout_height="56dip" />
     52 
     53         <TextView
     54             android:id="@+id/stopwatch_stop"
     55             android:layout_gravity="bottom|center_horizontal"
     56             android:gravity="center"
     57             android:layout_marginBottom="0dip"
     58             android:paddingLeft="10dip"
     59             android:paddingStart="10dip"
     60             android:paddingRight="10dip"
     61             android:paddingEnd="10dip"
     62             android:paddingBottom="5dip"
     63             android:paddingTop="5dip"
     64             android:text="@string/timer_stop"
     65             android:layout_width="wrap_content"
     66             style="@style/bold_button"
     67             android:contentDescription="@string/timer_stop"
     68             android:layout_height="wrap_content"
     69             android:focusable="true" />
     70 
     71         <ImageButton
     72             android:id="@+id/stopwatch_share_button"
     73             android:background="@null"
     74             android:layout_width="56dip"
     75             android:src="@drawable/ic_share"
     76             style="@style/button"
     77             android:layout_gravity="bottom|end"
     78             android:layout_height="56dip"
     79             android:contentDescription="@string/sw_share_button" />
     80     </FrameLayout>
     81 
     82     <ListView
     83         android:id="@+id/laps_list"
     84         android:layout_weight="1"
     85         android:layout_marginRight="@dimen/sw_right_margin"
     86         android:layout_marginEnd="@dimen/sw_right_margin"
     87         android:layout_gravity="center"
     88         android:layout_width="0dip"
     89         android:layout_height="wrap_content" />
     90 </com.android.deskclock.CircleButtonsLinearLayout>
     91