<?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.
-->

<!-- timer item in the list of active timers -->
<com.android.deskclock.CircleButtonsLinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/timer_circle"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:gravity="center"
    android:orientation="vertical">

    <FrameLayout
        android:id="@+id/timer_frame"
        android:layout_width="match_parent"
        android:layout_height="@dimen/timer_circle_diameter"
        android:layout_marginLeft="@dimen/timer_circle_margin"
        android:layout_marginRight="@dimen/timer_circle_margin">

        <com.android.deskclock.CircleTimerView
            android:id="@+id/timer_time"
            android:layout_width="match_parent"
            android:layout_height="match_parent"/>

        <com.android.deskclock.timer.CountingTimerView
            android:id="@+id/timer_time_text"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_gravity="center"/>

         <FrameLayout
             android:id="@+id/timer_label"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_marginTop="0dip"
             android:layout_gravity="top|center_horizontal"
             android:enabled="true"
             android:clickable="true"
             android:contentDescription="@string/label"
             >
             <TextView
                android:id="@+id/timer_label_text"
                android:layout_height="56dip"
                android:layout_width="wrap_content"
                android:background="@null"
                android:layout_gravity="center_horizontal"
                android:gravity="center"
                style="@style/timer_label"
                android:enabled="false"
                android:clickable="false"
                android:singleLine="true"
                android:ellipsize="end"
                android:text="@string/label_unlabeled"/>
             <ImageButton
                android:id="@+id/timer_label_icon"
                android:layout_height="56dip"
                android:layout_width="56dip"
                android:background="@null"
                android:layout_gravity="center_horizontal"
                android:enabled="false"
                android:clickable="false"
                style="@style/button"
                android:src="@drawable/ic_label" />
         </FrameLayout>
         <ImageButton
            android:id="@+id/timer_plus_one"
            android:src="@drawable/ic_plusone"
            android:background="@null"
            android:layout_width="56dip"
            android:layout_gravity="bottom|left"
            style="@style/button"
            android:contentDescription="@string/timer_plus_one"
            android:layout_height="56dip" />

        <TextView
            android:id="@+id/timer_stop"
            android:layout_gravity="bottom|center_horizontal"
            android:gravity="center"
            android:layout_marginBottom="0dip"
            android:paddingLeft="10dip"
            android:paddingRight="10dip"
            android:paddingBottom="5dip"
            android:paddingTop="5dip"
            android:text="@string/timer_stop"
            android:layout_width="wrap_content"
            style="@style/bold_button"
            android:contentDescription="@string/timer_stop"
            android:layout_height="wrap_content" />

        <ImageButton
            android:id="@+id/timer_delete"
            android:src="@drawable/ic_delete"
            android:background="@null"
            android:layout_gravity="bottom|right"
            android:layout_width="56dip"
            android:contentDescription="@string/timer_delete"
            style="@style/button"
            android:layout_height="56dip" />
    </FrameLayout>

</com.android.deskclock.CircleButtonsLinearLayout>