Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2007 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 <RelativeLayout
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     xmlns:dc="http://schemas.android.com/apk/res-auto"
     20     android:layout_width="match_parent"
     21     android:layout_height="match_parent"
     22     android:background="@color/black">
     23 
     24     <LinearLayout
     25         android:layout_width="wrap_content"
     26         android:layout_height="match_parent"
     27         android:orientation="vertical"
     28         android:layout_marginTop="32sp"
     29         android:layout_centerHorizontal="true"
     30         android:layout_alignParentTop="true"
     31         >
     32 
     33         <TextView android:id="@+id/alertTitle"
     34             android:singleLine="true"
     35             android:ellipsize="end"
     36             style="@style/header_not_caps"
     37             android:paddingLeft="@dimen/label_margin_big"
     38             android:paddingStart="@dimen/label_margin_big"
     39             android:paddingBottom="@dimen/label_margin_small"
     40             android:textColor="@color/clock_white"
     41             android:layout_width="wrap_content"
     42             android:layout_height="wrap_content"/>
     43 
     44         <com.android.deskclock.DigitalClock
     45             android:id="@+id/digitalClock"
     46             android:layout_width="wrap_content"
     47             android:layout_height="wrap_content"
     48             android:gravity="top"
     49             android:layoutDirection="ltr"
     50             android:paddingBottom="24dp"
     51             android:baselineAligned="false"
     52             >
     53             <com.android.deskclock.ZeroTopPaddingTextView
     54                 android:id="@+id/timeDisplayHours"
     55                 android:layout_width="wrap_content"
     56                 android:layout_height="wrap_content"
     57                 android:paddingRight="@dimen/time_margin_right"
     58                 android:paddingEnd="@dimen/time_margin_right"
     59                 android:singleLine="true"
     60                 android:ellipsize="none"
     61                 style="@style/big_bold"
     62                 android:textColor="@color/clock_white"/>
     63             <com.android.deskclock.ZeroTopPaddingTextView
     64                 android:id="@+id/timeDisplayMinutes"
     65                 android:layout_width="wrap_content"
     66                 android:layout_height="wrap_content"
     67                 style="@style/big_thin"
     68                 android:singleLine="true"
     69                 android:ellipsize="none"
     70                 android:textColor="@color/clock_white"/>
     71             <com.android.deskclock.ZeroTopPaddingTextView
     72                 android:id="@+id/am_pm"
     73                 android:layout_height="wrap_content"
     74                 android:layout_width="wrap_content"
     75                 style="@style/label"
     76                 android:singleLine="true"
     77                 android:ellipsize="none"
     78                 android:textColor="@color/clock_white"
     79                 />
     80         </com.android.deskclock.DigitalClock>
     81     </LinearLayout>
     82 
     83     <com.android.deskclock.widget.multiwaveview.GlowPadView
     84         android:id="@+id/glow_pad_view"
     85         android:layout_width="wrap_content"
     86         android:layout_height="wrap_content"
     87         android:layout_marginBottom="@dimen/glowpadview_margin_bottom"
     88         android:focusable="true"
     89         android:layout_alignParentBottom="true"
     90         android:layout_centerHorizontal="true"
     91         android:gravity="center"
     92         android:layout_gravity="center_vertical"
     93 
     94         dc:targetDrawables="@array/snooze_dismiss_drawables"
     95         dc:targetDescriptions="@array/snooze_dismiss_descriptions"
     96         dc:directionDescriptions="@array/snooze_dismiss_direction_descriptions"
     97         dc:handleDrawable="@drawable/ic_alarm_alert_touch_handle"
     98         dc:outerRingDrawable="@drawable/ic_alarm_alert_outerring"
     99         dc:outerRadius="@dimen/glowpadview_target_placement_radius"
    100         dc:innerRadius="@dimen/glowpadview_inner_radius"
    101         dc:snapMargin="@dimen/glowpadview_snap_margin"
    102         dc:feedbackCount="1"
    103         dc:vibrationDuration="20"
    104         dc:glowRadius="@dimen/glowpadview_glow_radius"
    105         dc:pointDrawable="@drawable/ic_lockscreen_glowdot"
    106         />
    107 
    108 </RelativeLayout>
    109