Home | History | Annotate | Download | only in layout-land
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3      Copyright (C) 2007 The Android Open Source Project
      4 
      5      Licensed under the Apache License, Version 2.0 (the "License");
      6      you may not use this file except in compliance with the License.
      7      You may obtain a copy of the License at
      8 
      9           http://www.apache.org/licenses/LICENSE-2.0
     10 
     11      Unless required by applicable law or agreed to in writing, software
     12      distributed under the License is distributed on an "AS IS" BASIS,
     13      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14      See the License for the specific language governing permissions and
     15      limitations under the License.
     16 -->
     17 
     18 <RelativeLayout
     19     xmlns:android="http://schemas.android.com/apk/res/android"
     20     xmlns:dc="http://schemas.android.com/apk/res-auto"
     21     android:layout_width="match_parent"
     22     android:layout_height="match_parent"
     23     android:background="@color/black"
     24     android:baselineAligned="false"
     25     android:gravity="center_vertical" >
     26 
     27     <LinearLayout
     28         android:id="@+id/alarm_clock_left"
     29         android:layout_width="wrap_content"
     30         android:layout_height="wrap_content"
     31         android:orientation="vertical"
     32         android:layout_alignParentLeft="true"
     33         android:layout_centerVertical="true"
     34         android:paddingBottom="@dimen/header_font_size"
     35         android:paddingLeft="@dimen/alarm_alert_clock_padding_left" >
     36 
     37         <TextView
     38             android:id="@+id/alertTitle"
     39             style="@style/header"
     40             android:layout_width="wrap_content"
     41             android:layout_height="wrap_content"
     42             android:ellipsize="end"
     43             android:textColor="@color/clock_white"
     44             android:paddingLeft="@dimen/label_margin_big"
     45             android:paddingBottom="@dimen/label_margin_small"
     46             android:singleLine="true" />
     47 
     48         <com.android.deskclock.DigitalClock
     49             android:id="@+id/digitalClock"
     50             android:layout_width="wrap_content"
     51             android:layout_height="wrap_content"
     52             android:baselineAligned="false"
     53             android:gravity="top" >
     54 
     55             <com.android.deskclock.ZeroTopPaddingTextView
     56                 android:id="@+id/timeDisplayHours"
     57                 style="@style/big_bold"
     58                 android:layout_width="wrap_content"
     59                 android:layout_height="wrap_content"
     60                 android:ellipsize="none"
     61                 android:paddingRight="@dimen/time_margin_right"
     62                 android:singleLine="true"
     63                 android:textColor="@color/clock_white" />
     64 
     65             <com.android.deskclock.ZeroTopPaddingTextView
     66                 android:id="@+id/timeDisplayMinutes"
     67                 style="@style/big_thin"
     68                 android:layout_width="wrap_content"
     69                 android:layout_height="wrap_content"
     70                 android:ellipsize="none"
     71                 android:singleLine="true"
     72                 android:textColor="@color/clock_white" />
     73 
     74             <com.android.deskclock.ZeroTopPaddingTextView
     75                 android:id="@+id/am_pm"
     76                 style="@style/label"
     77                 android:layout_width="wrap_content"
     78                 android:layout_height="wrap_content"
     79                 android:ellipsize="none"
     80                 android:singleLine="true"
     81                 android:textColor="@color/clock_white" />
     82         </com.android.deskclock.DigitalClock>
     83     </LinearLayout>
     84 
     85     <com.android.deskclock.widget.multiwaveview.GlowPadView
     86         android:id="@+id/glow_pad_view"
     87         android:layout_width="wrap_content"
     88         android:layout_height="wrap_content"
     89         android:focusable="true"
     90         android:layout_marginRight="@dimen/glowpadview_margin_right"
     91         android:layout_alignParentRight="true"
     92         android:layout_centerVertical="true"
     93         android:gravity="center"
     94         android:layout_gravity="center_vertical"
     95 
     96         dc:targetDrawables="@array/snooze_dismiss_drawables"
     97         dc:targetDescriptions="@array/snooze_dismiss_descriptions"
     98         dc:directionDescriptions="@array/snooze_dismiss_direction_descriptions"
     99         dc:handleDrawable="@drawable/ic_alarm_alert_touch_handle"
    100         dc:outerRingDrawable="@drawable/ic_alarm_alert_outerring"
    101         dc:outerRadius="@dimen/glowpadview_target_placement_radius"
    102         dc:innerRadius="@dimen/glowpadview_inner_radius"
    103         dc:snapMargin="@dimen/glowpadview_snap_margin"
    104         dc:feedbackCount="1"
    105         dc:vibrationDuration="20"
    106         dc:glowRadius="@dimen/glowpadview_glow_radius"
    107         dc:pointDrawable="@drawable/ic_lockscreen_glowdot"
    108         />
    109 
    110 </RelativeLayout>
    111 
    112