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