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 
     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="@dimen/timer_circle_width"
     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          <FrameLayout
     46              android:id="@+id/timer_label"
     47              android:layout_width="wrap_content"
     48              android:layout_height="wrap_content"
     49              android:layout_marginTop="0dip"
     50              android:layout_gravity="top|center_horizontal"
     51              android:enabled="true"
     52              android:clickable="true"
     53              android:contentDescription="@string/label"
     54              >
     55              <TextView
     56                 android:id="@+id/timer_label_text"
     57                 android:layout_height="56dip"
     58                 android:layout_width="wrap_content"
     59                 android:background="@null"
     60                 android:layout_gravity="center_horizontal"
     61                 android:gravity="center"
     62                 style="@style/timer_label"
     63                 android:enabled="false"
     64                 android:clickable="false"
     65                 android:singleLine="true"
     66                 android:ellipsize="end"
     67                 android:text="@string/label_unlabeled" />
     68              <ImageButton
     69                 android:id="@+id/timer_label_icon"
     70                 android:layout_height="56dip"
     71                 android:layout_width="56dip"
     72                 android:background="@null"
     73                 android:layout_gravity="center_horizontal"
     74                 android:enabled="false"
     75                 android:clickable="false"
     76                 style="@style/button"
     77                 android:src="@drawable/ic_label" />
     78          </FrameLayout>
     79         <ImageButton
     80             android:id="@+id/timer_plus_one"
     81             android:layout_width="56dip"
     82             android:layout_gravity="bottom|start"
     83             android:src="@drawable/ic_plusone"
     84             style="@style/button"
     85             android:background="@null"
     86             android:contentDescription="@string/timer_plus_one"
     87             android:layout_height="56dip" />
     88 
     89         <TextView
     90             android:id="@+id/timer_stop"
     91             android:layout_gravity="bottom|center_horizontal"
     92             android:gravity="center"
     93             android:layout_marginBottom="0dip"
     94             android:paddingLeft="10dip"
     95             android:paddingStart="10dip"
     96             android:paddingRight="10dip"
     97             android:paddingEnd="10dip"
     98             android:paddingBottom="5dip"
     99             android:paddingTop="5dip"
    100             android:layout_width="wrap_content"
    101             android:text="@string/timer_stop"
    102             style="@style/bold_button"
    103             android:contentDescription="@string/timer_stop"
    104             android:layout_height="wrap_content" />
    105 
    106         <ImageButton
    107             android:id="@+id/timer_delete"
    108             android:background="@null"
    109             android:src="@drawable/ic_delete"
    110             android:layout_gravity="bottom|end"
    111             android:layout_width="56dip"
    112             android:contentDescription="@string/timer_delete"
    113             style="@style/button"
    114             android:layout_height="56dip" />
    115     </FrameLayout>
    116 
    117 </com.android.deskclock.CircleButtonsLinearLayout>
    118