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 
     17 <!-- timer item in the list of active timers -->
     18 <com.android.deskclock.CircleButtonsLayout
     19         xmlns:android="http://schemas.android.com/apk/res/android"
     20         android:id="@+id/timer_circle"
     21         android:layout_width="match_parent"
     22         android:layout_height="@dimen/timer_circle_diameter"
     23         android:layout_marginLeft="@dimen/timer_circle_margin"
     24         android:layout_marginStart="@dimen/timer_circle_margin"
     25         android:layout_marginRight="@dimen/timer_circle_margin"
     26         android:layout_marginEnd="@dimen/timer_circle_margin">
     27 
     28     <com.android.deskclock.CircleTimerView
     29             android:id="@+id/timer_time"
     30             android:layout_width="match_parent"
     31             android:layout_height="match_parent"/>
     32 
     33     <com.android.deskclock.timer.CountingTimerView
     34             android:id="@+id/timer_time_text"
     35             android:layout_width="match_parent"
     36             android:layout_height="match_parent"/>
     37 
     38     <FrameLayout
     39             android:id="@+id/timer_label"
     40             android:layout_width="wrap_content"
     41             android:layout_height="wrap_content"
     42             android:layout_marginTop="0dip"
     43             android:layout_gravity="top|center_horizontal"
     44             android:enabled="true"
     45             android:clickable="true"
     46             android:contentDescription="@string/label"
     47             >
     48 
     49         <TextView
     50                 android:id="@+id/timer_label_text"
     51                 android:layout_height="56dip"
     52                 android:layout_width="wrap_content"
     53                 android:background="@null"
     54                 android:layout_gravity="center_horizontal"
     55                 android:gravity="center"
     56                 style="@style/timer_label"
     57                 android:enabled="false"
     58                 android:clickable="false"
     59                 android:singleLine="true"
     60                 android:ellipsize="end"
     61                 android:text="@string/label_unlabeled"/>
     62 
     63         <ImageButton
     64                 android:id="@+id/timer_label_icon"
     65                 android:layout_height="56dip"
     66                 android:layout_width="56dip"
     67                 android:background="@null"
     68                 android:layout_gravity="center_horizontal"
     69                 android:enabled="false"
     70                 android:clickable="false"
     71                 android:contentDescription="@string/label"
     72                 style="@style/button"
     73                 android:src="@drawable/ic_label"/>
     74     </FrameLayout>
     75 
     76     <ImageButton
     77             android:id="@+id/timer_plus_one"
     78             android:src="@drawable/ic_plusone"
     79             android:background="@null"
     80             android:layout_width="56dip"
     81             android:layout_gravity="bottom|start"
     82             style="@style/button"
     83             android:contentDescription="@string/timer_plus_one"
     84             android:layout_height="56dip"/>
     85 
     86     <TextView
     87             android:id="@+id/timer_stop"
     88             android:layout_gravity="bottom|center_horizontal"
     89             android:gravity="center"
     90             android:layout_marginBottom="0dip"
     91             android:paddingLeft="10dip"
     92             android:paddingStart="10dip"
     93             android:paddingRight="10dip"
     94             android:paddingEnd="10dip"
     95             android:paddingBottom="5dip"
     96             android:paddingTop="5dip"
     97             android:text="@string/timer_stop"
     98             android:layout_width="wrap_content"
     99             style="@style/bold_button"
    100             android:contentDescription="@string/timer_stop"
    101             android:layout_height="wrap_content"/>
    102 
    103     <ImageButton
    104             android:id="@+id/timer_delete"
    105             android:src="@drawable/ic_delete"
    106             android:background="@null"
    107             android:layout_gravity="bottom|end"
    108             android:layout_width="56dip"
    109             android:contentDescription="@string/timer_delete"
    110             style="@style/button"
    111             android:layout_height="56dip"/>
    112 </com.android.deskclock.CircleButtonsLayout>
    113 
    114