Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2015 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 <com.android.deskclock.timer.TimerItem
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:layout_width="match_parent"
     20     android:layout_height="wrap_content"
     21     android:layout_gravity="center"
     22     android:gravity="center_vertical"
     23     android:orientation="vertical"
     24     android:paddingBottom="@dimen/timer_list_padding_bottom">
     25 
     26     <com.android.deskclock.CircleButtonsLayout
     27         android:id="@+id/timer_circle"
     28         android:layout_width="@dimen/circle_size"
     29         android:layout_height="@dimen/circle_size"
     30         android:layout_gravity="center"
     31         android:padding="@dimen/timer_padding">
     32 
     33         <com.android.deskclock.timer.TimerCircleView
     34             android:id="@+id/timer_time"
     35             android:layout_width="match_parent"
     36             android:layout_height="match_parent"/>
     37 
     38         <com.android.deskclock.timer.CountingTimerView
     39             android:id="@+id/timer_time_text"
     40             android:layout_width="match_parent"
     41             android:layout_height="match_parent"/>
     42 
     43         <Button
     44             android:id="@+id/timer_label"
     45             style="?android:attr/borderlessButtonStyle"
     46             android:layout_width="wrap_content"
     47             android:layout_height="56dp"
     48             android:layout_gravity="top|center_horizontal"
     49             android:clickable="false"
     50             android:ellipsize="end"
     51             android:gravity="center"
     52             android:hint="@string/label"
     53             android:singleLine="true"
     54             android:src="@drawable/ic_label"
     55             android:textAppearance="@style/SecondaryLabelTextAppearance"/>
     56 
     57         <ImageButton
     58             android:id="@+id/reset_add"
     59             android:layout_width="50dp"
     60             android:layout_height="50dp"
     61             android:layout_gravity="bottom|center_horizontal"
     62             android:contentDescription="@string/timer_plus_one"
     63             android:gravity="center"
     64             android:scaleType="center"
     65             android:src="@drawable/ic_plusone"/>
     66 
     67     </com.android.deskclock.CircleButtonsLayout>
     68 
     69 </com.android.deskclock.timer.TimerItem>