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_alignParentStart="true"
     34         android:layout_centerVertical="true"
     35         android:paddingBottom="@dimen/header_font_size"
     36         android:paddingLeft="@dimen/alarm_alert_clock_padding_left"
     37         android:paddingStart="@dimen/alarm_alert_clock_padding_left" >
     38         <TextView
     39             android:id="@+id/alertTitle"
     40             style="@style/header"
     41             android:layout_width="wrap_content"
     42             android:layout_height="wrap_content"
     43             android:ellipsize="end"
     44             android:textColor="@color/clock_white"
     45             android:paddingLeft="@dimen/label_margin_big"
     46             android:paddingStart="@dimen/label_margin_big"
     47             android:paddingBottom="@dimen/label_margin_small"
     48             android:singleLine="true" />
     49 
     50         <com.android.deskclock.DigitalClock
     51             android:id="@+id/digitalClock"
     52             android:layout_width="wrap_content"
     53             android:layout_height="wrap_content"
     54             android:layoutDirection="ltr"
     55             android:baselineAligned="false"
     56             android:gravity="top" >
     57 
     58             <com.android.deskclock.ZeroTopPaddingTextView
     59                 android:id="@+id/timeDisplayHours"
     60                 style="@style/big_bold"
     61                 android:layout_width="wrap_content"
     62                 android:layout_height="wrap_content"
     63                 android:ellipsize="none"
     64                 android:paddingRight="@dimen/time_margin_right"
     65                 android:paddingEnd="@dimen/time_margin_right"
     66                 android:singleLine="true"
     67                 android:textColor="@color/clock_white" />
     68 
     69             <com.android.deskclock.ZeroTopPaddingTextView
     70                 android:id="@+id/timeDisplayMinutes"
     71                 style="@style/big_thin"
     72                 android:layout_width="wrap_content"
     73                 android:layout_height="wrap_content"
     74                 android:ellipsize="none"
     75                 android:singleLine="true"
     76                 android:textColor="@color/clock_white" />
     77 
     78             <com.android.deskclock.ZeroTopPaddingTextView
     79                 android:id="@+id/am_pm"
     80                 style="@style/label"
     81                 android:layout_width="wrap_content"
     82                 android:layout_height="wrap_content"
     83                 android:ellipsize="none"
     84                 android:singleLine="true"
     85                 android:textColor="@color/clock_white" />
     86         </com.android.deskclock.DigitalClock>
     87     </LinearLayout>
     88 
     89     <com.android.deskclock.widget.multiwaveview.GlowPadView
     90         android:id="@+id/glow_pad_view"
     91         android:layout_width="wrap_content"
     92         android:layout_height="wrap_content"
     93         android:focusable="true"
     94         android:layout_marginRight="@dimen/glowpadview_margin_right"
     95         android:layout_marginEnd="@dimen/glowpadview_margin_right"
     96         android:layout_alignParentRight="true"
     97         android:layout_alignParentEnd="true"
     98         android:layout_centerVertical="true"
     99         android:gravity="center"
    100         android:layout_gravity="center_vertical"
    101 
    102         dc:targetDrawables="@array/snooze_dismiss_drawables"
    103         dc:targetDescriptions="@array/snooze_dismiss_descriptions"
    104         dc:directionDescriptions="@array/snooze_dismiss_direction_descriptions"
    105         dc:handleDrawable="@drawable/ic_alarm_alert_touch_handle"
    106         dc:outerRingDrawable="@drawable/ic_alarm_alert_outerring"
    107         dc:outerRadius="@dimen/glowpadview_target_placement_radius"
    108         dc:innerRadius="@dimen/glowpadview_inner_radius"
    109         dc:snapMargin="@dimen/glowpadview_snap_margin"
    110         dc:feedbackCount="1"
    111         dc:vibrationDuration="20"
    112         dc:glowRadius="@dimen/glowpadview_glow_radius"
    113         dc:pointDrawable="@drawable/ic_lockscreen_glowdot"
    114         />
    115 
    116 </RelativeLayout>
    117 
    118