Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3   Copyright (C) 2015 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 <FrameLayout
     19     xmlns:android="http://schemas.android.com/apk/res/android"
     20     xmlns:ex="http://schemas.android.com/apk/res-auto"
     21     android:layout_width="match_parent"
     22     android:layout_height="match_parent"
     23     android:fitsSystemWindows="true"
     24     android:layoutDirection="ltr">
     25 
     26     <android.support.v7.widget.GridLayout
     27         android:id="@+id/content"
     28         android:layout_width="match_parent"
     29         android:layout_height="match_parent"
     30         ex:rowCount="3"
     31         ex:columnCount="3">
     32 
     33         <TextView
     34             android:id="@+id/title"
     35             android:layout_width="0dip"
     36             android:layout_height="wrap_content"
     37             android:layout_marginTop="?attr/actionBarSize"
     38             android:gravity="center"
     39             android:singleLine="true"
     40             android:textAppearance="@style/header_not_caps"
     41             android:textColor="@android:color/white"
     42             ex:layout_row="0"
     43             ex:layout_column="0"
     44             ex:layout_columnSpan="3"
     45             ex:layout_gravity="fill_horizontal" />
     46 
     47         <TextClock
     48             android:id="@+id/digital_clock"
     49             android:layout_width="0dip"
     50             android:layout_height="wrap_content"
     51             android:format12Hour="@string/main_clock_12_hours_format"
     52             android:format24Hour="@string/clock_24_hours_format"
     53             android:gravity="center"
     54             android:includeFontPadding="false"
     55             android:singleLine="true"
     56             android:textAppearance="@style/big_thin"
     57             android:textColor="@android:color/white"
     58             ex:layout_row="1"
     59             ex:layout_column="0"
     60             ex:layout_columnSpan="3"
     61             ex:layout_gravity="fill_horizontal" />
     62 
     63         <com.android.deskclock.widget.CircleView
     64             android:id="@+id/pulse"
     65             android:layout_width="0dip"
     66             android:layout_height="0dip"
     67             android:gravity="center"
     68             android:layerType="hardware"
     69             ex:layout_row="2"
     70             ex:layout_column="0"
     71             ex:layout_columnSpan="3"
     72             ex:layout_gravity="fill"
     73             ex:fillColor="@android:color/white"
     74             ex:radius="@dimen/alarm_lockscreen_pulse_radius" />
     75 
     76         <ImageView
     77             android:id="@+id/snooze"
     78             android:layout_width="wrap_content"
     79             android:layout_height="wrap_content"
     80             android:background="@drawable/bg_circle_accent"
     81             android:contentDescription="@string/alarm_alert_snooze_text"
     82             android:src="@drawable/ic_snooze_white_80dp"
     83             ex:layout_row="2"
     84             ex:layout_column="0"
     85             ex:layout_columnWeight="1"
     86             ex:layout_gravity="center" />
     87 
     88         <ImageView
     89             android:id="@+id/dismiss"
     90             android:layout_width="wrap_content"
     91             android:layout_height="wrap_content"
     92             android:background="@drawable/bg_circle_white"
     93             android:contentDescription="@string/alarm_alert_dismiss_text"
     94             android:src="@drawable/ic_alarm_off_white_80dp"
     95             ex:layout_row="2"
     96             ex:layout_column="2"
     97             ex:layout_columnWeight="1"
     98             ex:layout_gravity="center" />
     99 
    100         <ImageView
    101             android:id="@+id/alarm"
    102             android:layout_width="wrap_content"
    103             android:layout_height="wrap_content"
    104             android:background="@android:color/transparent"
    105             android:contentDescription="@string/description_direction_both"
    106             android:paddingBottom="@dimen/alarm_lockscreen_alarm_vertical_padding"
    107             android:paddingLeft="@dimen/alarm_lockscreen_alarm_horizontal_padding"
    108             android:paddingRight="@dimen/alarm_lockscreen_alarm_horizontal_padding"
    109             android:paddingTop="@dimen/alarm_lockscreen_alarm_vertical_padding"
    110             android:src="@drawable/ic_fab_alarm"
    111             ex:layout_row="2"
    112             ex:layout_column="1"
    113             ex:layout_columnWeight="1"
    114             ex:layout_gravity="center" />
    115 
    116         <TextView
    117             android:id="@+id/hint"
    118             android:layout_width="wrap_content"
    119             android:layout_height="wrap_content"
    120             android:layout_marginBottom="@dimen/alarm_lockscreen_bottom_margin"
    121             android:textColor="@android:color/white"
    122             android:textSize="@dimen/bottom_text_size"
    123             android:visibility="gone"
    124             ex:layout_row="2"
    125             ex:layout_column="0"
    126             ex:layout_columnSpan="3"
    127             ex:layout_gravity="bottom|center_horizontal" />
    128 
    129     </android.support.v7.widget.GridLayout>
    130 
    131     <LinearLayout
    132         android:id="@+id/alert"
    133         android:layout_width="wrap_content"
    134         android:layout_height="wrap_content"
    135         android:layout_gravity="center"
    136         android:orientation="vertical"
    137         android:visibility="gone">
    138 
    139         <TextView
    140             android:id="@+id/alert_title"
    141             android:layout_width="match_parent"
    142             android:layout_height="wrap_content"
    143             android:gravity="center_horizontal"
    144             android:textAppearance="@style/alarm_lockscreen_thin"
    145             android:textColor="@android:color/white" />
    146 
    147         <TextView
    148             android:id="@+id/alert_info"
    149             android:layout_width="match_parent"
    150             android:layout_height="wrap_content"
    151             android:gravity="center_horizontal"
    152             android:textAppearance="@style/alarm_lockscreen_thin"
    153             android:textColor="@android:color/white"
    154             android:textStyle="bold"
    155             android:visibility="gone" />
    156 
    157     </LinearLayout>
    158 
    159 </FrameLayout>
    160