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:paddingBottom="@dimen/label_margin_small"
     39             android:textColor="@color/clock_white"
     40             android:layout_width="wrap_content"
     41             android:layout_height="wrap_content"/>
     42 
     43         <com.android.deskclock.DigitalClock
     44             android:id="@+id/digitalClock"
     45             android:layout_width="wrap_content"
     46             android:layout_height="wrap_content"
     47             android:gravity="top"
     48             android:paddingBottom="24dp"
     49             android:baselineAligned="false"
     50             >
     51             <com.android.deskclock.ZeroTopPaddingTextView
     52                 android:id="@+id/timeDisplayHours"
     53                 android:layout_width="wrap_content"
     54                 android:layout_height="wrap_content"
     55                 android:paddingRight="@dimen/time_margin_right"
     56                 android:singleLine="true"
     57                 android:ellipsize="none"
     58                 style="@style/big_bold"
     59                 android:textColor="@color/clock_white"/>
     60             <com.android.deskclock.ZeroTopPaddingTextView
     61                 android:id="@+id/timeDisplayMinutes"
     62                 android:layout_width="wrap_content"
     63                 android:layout_height="wrap_content"
     64                 style="@style/big_thin"
     65                 android:singleLine="true"
     66                 android:ellipsize="none"
     67                 android:textColor="@color/clock_white"/>
     68             <com.android.deskclock.ZeroTopPaddingTextView
     69                 android:id="@+id/am_pm"
     70                 android:layout_height="wrap_content"
     71                 android:layout_width="wrap_content"
     72                 style="@style/label"
     73                 android:singleLine="true"
     74                 android:ellipsize="none"
     75                 android:textColor="@color/clock_white"
     76                 />
     77         </com.android.deskclock.DigitalClock>
     78     </LinearLayout>
     79 
     80     <com.android.deskclock.widget.multiwaveview.GlowPadView
     81         android:id="@+id/glow_pad_view"
     82         android:layout_width="wrap_content"
     83         android:layout_height="wrap_content"
     84         android:layout_marginBottom="@dimen/glowpadview_margin_bottom"
     85         android:focusable="true"
     86         android:layout_alignParentBottom="true"
     87         android:layout_centerHorizontal="true"
     88         android:gravity="center"
     89         android:layout_gravity="center_vertical"
     90 
     91         dc:targetDrawables="@array/snooze_dismiss_drawables"
     92         dc:targetDescriptions="@array/snooze_dismiss_descriptions"
     93         dc:directionDescriptions="@array/snooze_dismiss_direction_descriptions"
     94         dc:handleDrawable="@drawable/ic_alarm_alert_touch_handle"
     95         dc:outerRingDrawable="@drawable/ic_alarm_alert_outerring"
     96         dc:outerRadius="@dimen/glowpadview_target_placement_radius"
     97         dc:innerRadius="@dimen/glowpadview_inner_radius"
     98         dc:snapMargin="@dimen/glowpadview_snap_margin"
     99         dc:feedbackCount="1"
    100         dc:vibrationDuration="20"
    101         dc:glowRadius="@dimen/glowpadview_glow_radius"
    102         dc:pointDrawable="@drawable/ic_lockscreen_glowdot"
    103         />
    104 
    105 </RelativeLayout>
    106