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.timer.TimerListItem
     19     xmlns:android="http://schemas.android.com/apk/res/android"
     20     android:layout_width="match_parent"
     21     android:layout_height="wrap_content"
     22     android:layout_gravity="center"
     23     android:gravity="center_vertical"
     24     android:paddingBottom="@dimen/timer_list_padding_bottom"
     25     android:orientation="vertical">
     26 
     27     <com.android.deskclock.CircleButtonsLayout
     28         android:id="@+id/timer_circle"
     29         android:layout_width="@dimen/circle_size"
     30         android:layout_height="@dimen/circle_size"
     31         android:layout_gravity="center"
     32         android:layout_marginEnd="@dimen/timer_circle_margin"
     33         android:layout_marginStart="@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 
     45         <FrameLayout
     46             android:id="@+id/timer_label"
     47             android:layout_width="wrap_content"
     48             android:layout_height="wrap_content"
     49             android:layout_gravity="top|center_horizontal"
     50             android:layout_marginTop="0dip"
     51             android:background="?android:attr/selectableItemBackgroundBorderless"
     52             android:contentDescription="@string/label">
     53 
     54             <TextView
     55                 android:id="@+id/timer_label_text"
     56                 android:layout_width="wrap_content"
     57                 android:layout_height="56dip"
     58                 android:layout_gravity="center_horizontal"
     59                 android:ellipsize="end"
     60                 android:enabled="false"
     61                 android:gravity="center"
     62                 android:singleLine="true"
     63                 android:text="@string/label_unlabeled"
     64                 android:textAppearance="@style/SecondaryLabelTextAppearance" />
     65 
     66             <TextView
     67                 android:id="@+id/timer_label_placeholder"
     68                 android:layout_width="wrap_content"
     69                 android:layout_height="56dip"
     70                 android:layout_gravity="center_horizontal"
     71                 android:contentDescription="@string/label"
     72                 android:enabled="false"
     73                 android:src="@drawable/ic_label"
     74                 android:text="@string/label"
     75                 android:textAppearance="@style/SecondaryLabelTextAppearance" />
     76         </FrameLayout>
     77 
     78         <ImageButton
     79             android:id="@+id/reset_add"
     80             android:layout_width="50dip"
     81             android:layout_height="50dip"
     82             android:layout_gravity="bottom|center_horizontal"
     83             android:background="?android:attr/selectableItemBackgroundBorderless"
     84             android:contentDescription="@string/timer_plus_one"
     85             android:gravity="center"
     86             android:src="@drawable/ic_plusone"/>
     87 
     88     </com.android.deskclock.CircleButtonsLayout>
     89 
     90 </com.android.deskclock.timer.TimerListItem>
     91